Specifications
Chapter 14152
applyServerBehavior()
Availability
Dreamweaver UltraDev 1
Description
Reads values from the form elements in the dialog box and adds the behavior to the user’s
document. Dreamweaver calls this function when the user clicks OK in the Server Behaviors
dialog box. If this function returns successfully, the Server Behaviors dialog box closes. If this
function fails, it displays the error message without closing the Server Behaviors dialog box. This
function can edit a user’s document.
For more information, see “dwscripts.applySB()” on page 157.
Arguments
serverBehavior
serverBehavior is a JavaScript object that represents the server behavior; it is necessary to
modify an existing behavior. If this is a new behavior, the argument is
null.
Returns
An empty string if successful. An error message returns if this function fails.
canApplyServerBehavior()
Availability
Dreamweaver UltraDev 1
Description
Determines whether a behavior can be applied. Dreamweaver calls this function before
displaying the Server Behaviors dialog box. If this function returns
true, the Server Behaviors
dialog box appears. If this function returns
false, the Server Behaviors dialog box does not
appear and the attempt to add a server behavior stops.
Arguments
serverBehavior
serverBehavior
is a JavaScript object that represents the behavior; it is necessary to modify an
existing behavior. If this is a new behavior, the argument is null.
Returns
true if the behavior can be applied; false otherwise.