JQuery

 view release on metacpan or  search on metacpan

lib/JQuery/jquery_js/plugins/window/window.js  view on Meta::CPAN

								0,
								hshClientInfo.scrollTop,
								hshClientInfo.documentWidth,
								hshClientInfo.documentHeight
							];
					}

					// Set the active window
					jqWindow.setActive(objWindow);

					// Update the element
					strWidth = objWindow.jw.hshOptions.hshDimensions.width + 'px';
					strHeight = (objWindow.jw.intWindowState == -1) ? objElem.jw.objqTitleWrp.height() : (objWindow.jw.hshOptions.hshDimensions.height + objWindow.jw.intPadding) + 'px';
					jQuery(objElement).addClass('jwDragging').css({
							display: 'block',
							width: strWidth,
							height: strHeight
					}).html(' ');

					// Make sure the jwHelper class is on the helper, so it gets pushed on top.
					jQuery.iDrag.helper.addClass('jwHelper');
				},
				onStop: function() {
					// Initialize the new hash (with integers)
					hshTemp = {
						left: parseInt(jQuery(this).css('left')) || 0,
						top: parseInt(jQuery(this).css('top')) || 0,
						width: parseInt(objWindow.jw.hshOptions.hshDimensions.width) || 0,
						height: parseInt(objWindow.jw.hshOptions.hshDimensions.height) || 0
					};

					// Update the window position, and set the moved flag
					jqWindow.setDimensions(objWindow, hshTemp, true);
				}
			};

			// Create draggable
			jQuery(objWindow).Draggable(hshOptions);
		} else {
			// Destroy draggable
			jQuery(objWindow).DraggableDestroy();
		}

		// Update the option hash? Default to true
		blnUpdateOptions = (blnUpdateOptions === false) ? false : true;
		if  (blnUpdateOptions) {
			objWindow.jw.hshOptions.isDraggable = blnValue;
		}
	},

	//----------------------------------------------------------------------------------------------------

	/**
	 * Updates the title of the window
	 * @param	object
	 * @param	double
	 */
	setOpacity: function(objWindow, dblValue) {
		// Check opacity
		dblValue = parseFloat(dblValue);
		if (isNaN(dblValue))
			dblValue = 1.0;

		// Set new opacity
		jQuery(objWindow).css({
				opacity: dblValue
			});

		// Save new opacity
		objWindow.jw.hshOptions.dblOpacity = dblValue;
	},

	//----------------------------------------------------------------------------------------------------

	/**
	 * Updates the position of the window
	 * @param	object
	 * @param	integer
	 */
	setPosition: function(objWindow, intValue) {
		// Save new position
		objWindow.jw.hshOptions.intPosition = intValue;

		// Make sure the window has the right LEFT and TOP position
		jqWindow.setDimensions(objWindow, jqWindow.calcLeftTop(objWindow, objWindow.jw.hshOptions.hshDimensions));
	},

	//----------------------------------------------------------------------------------------------------

	/**
	 * Updates the title of the window
	 * @param	object
	 * @param	string
	 */
	setTitle: function(objWindow, strValue) {
		objWindow.jw.objqTitle.html(strValue);
	},

	//----------------------------------------------------------------------------------------------------

	/**
	 * Updates the content of the window with the new value
	 * @param	object
	 * @param	string
	 */
	setContent: function(objWindow, strValue) {
		// Make sure there is no iFrame anymore
		jqWindow.setIFrame(objWindow, false);

		// Set the new content
		objWindow.jw.objqContent.empty().html(strValue);

		// Execute the LOAD callback
		jqWindow.cbLoad(objWindow.jw.objqContent);
	},

	//----------------------------------------------------------------------------------------------------

	/**
	 * Updates the content of the window with a new URL
	 * @param	object



( run in 1.160 second using v1.01-cache-2.11-cpan-39bf76dae61 )