Specifications

Chapter 12128
getDockingSide()
Availability
Dreamweaver MX (Windows only)
Description
Specifies the locations at which a floating panel can dock. The function returns a string that
contains some combination of the words
"left", "right", "top", and "bottom". If the label is
in the string, you can dock to that side. If the function is missing, you cannot dock to any side.
You can use this function to prevent certain panels from docking on a certain side of the
Dreamweaver MX workspace or to each other.
Arguments
None.
Returns
Dreamweaver expects a string containing the words "left", "right", "top", and "bottom", or a
combination of them, that specifies where Dreamweaver can dock the floating panel.
Example
getDockingSide()
{
return dock_side = “left top”;
}
initialPosition()
Description
Determines the initial position of the floating panel the first time it is called. If this function is
not defined, the default position is the center of the screen.
Arguments
platform
Possible values for platform are "Mac" and "Win".
Returns
Dreamweaver expects a string of the form "leftPosInPixels,topPosInPixels".
Example
The following example of initialPosition() specifies that the first time the floating panel
appears, it should be 420 pixels from the left and 20 pixels from the top in Windows, and 390
pixels from the left side of the screen and 20 pixels from the top of the screen on the Macintosh:
function initialPosition(platform){
var initPos = "420,20";
if (platform == "macintosh"){
initPos = "390,20";
}
return initPos;
}