Specifications

The Dreamweaver JavaScript API 401
Arguments
commandFile, {commandArg1}, {commandArg2},...{commandArgN}
commandFile is a filename in the Configuration/Commands folder.
The second and remaining arguments pass to the receiveArguments function in
commandFile.
Returns
Nothing.
Example
You can write a custom Property inspector for tables that let users get to the Format Table
command from a button on the inspector by calling the following function from the buttons
onClick event handler:
function callFormatTable(){
dreamweaver.runCommand(’Format Table.htm’);
}
Components functions
Server Components functions let you access the currently selected node of the Server
Components tree control that appears in the Components panel. Using these functions, you can
also refresh the view of the component tree.
dreamweaver.serverComponents.getSelectedNode()
Availability
Dreamweaver MX
Description
Returns the currently selected ComponentRec property in the Server Components tree control.
Arguments
None.
Returns
ComponentRec property.
dreamweaver.serverComponents.refresh()
Availability
Dreamweaver MX
Description
Refreshes the view of the component tree.
Arguments
None.
Returns
Nothing.