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 users document. The
pasteServerBehavior()
function then adds the behavior to the users document. After
pasteServerBehavior() returns,
Dreamweaver calls the
findServerBehaviors() functions to get a new list of all the server
behaviors in the users 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 users
document. After Dreamweaver finds all the behaviors participants, it stores those lists. Typically,
you use this function with the
findServerBehaviors() function to locate instances of a
behavior in the users document.
Arguments
edmlFilename
edmlFilename
is the name of the group or participant file that contains the names of the
participants to locate in the users document. This string is the filename, without the .edml
extension.