Specifications
Server Behaviors 155
Arguments
serverBehavior
serverBehavior
is a JavaScript object that represents the behavior. It is the same object that
findServerBehaviors() returns.
Returns
Nothing.
pasteServerBehavior()
Availability
Dreamweaver UltraDev 1
Description
If it is implemented, users can paste instances of the specified server behavior using
pasteServerBehavior(). When the user pastes the server behavior, Dreamweaver organizes the
contents of the Clipboard and generates a new behavior object. The new object is identical to the
original, except that it lacks pointer properties. Dreamweaver passes the new behavior object to
pasteServerBehavior(). The pasteServerBehavior() function relies on the properties of the
behavior object to determine what to add to the user’s document. The
pasteServerBehavior()
function then adds the behavior to the user’s document. After
pasteServerBehavior() returns,
Dreamweaver calls the
findServerBehaviors() functions to get a new list of all the server
behaviors in the user’s document.
Implementing
pasteServerBehavior() is optional. For more information, see “How the Server
Behavior API functions are called” on page 149.
Note: If you implement this function, you must also implement the copyServerBehavior() function.
Arguments
behavior is a JavaScript object that represents the behavior.
Returns
true if the behavior pastes successfully from the Clipboard; false otherwise.
dreamweaver.getParticipants()
Availability
Dreamweaver UltraDev 4
Description
The JavaScript function, dw.getParticipants(), gets a list of participants from the user’s
document. After Dreamweaver finds all the behavior’s participants, it stores those lists. Typically,
you use this function with the
findServerBehaviors() function to locate instances of a
behavior in the user’s document.
Arguments
edmlFilename
edmlFilename
is the name of the group or participant file that contains the names of the
participants to locate in the user’s document. This string is the filename, without the .edml
extension.