Macromedia dreamweaver 8-extending dreamweaver User Manual

Page of 504
178
Commands
isDomRequired()
Description
This function determines whether the command requires a valid DOM to operate. If this 
function returns a value of 
true
 or if the function is not defined, Dreamweaver assumes that 
the command requires a valid DOM and synchronizes the Design and Code views of the 
document before executing. Synchronization causes all edits in the Code view to update in the 
Design view.
Arguments
None.
Returns
Dreamweaver expects a 
true
 value if a command requires a valid DOM to operate; 
false
 otherwise.
receiveArguments()
Description
This function processes any arguments that pass from a menu item or from the 
dw.runCommand()
 function.
Arguments
{arg1}, {arg2},...{argN}
If the 
arguments
 attribute is defined for a 
menuitem
 tag, the value of that attribute passes 
to the 
receiveArguments()
 function as one or more arguments. Arguments can also pass 
to a command by the 
dw.runCommand()
 function.
Returns
Dreamweaver expects nothing.
windowDimensions()
Description
This function sets specific dimensions for the Parameters dialog box. If this function is not 
defined, the window dimensions are computed automatically.
NO
T
E
Do not define this function unless you want an Options dialog box that is larger than 
640 x 480 pixels.