pasteServerBehavior()
Availability
Adobe Dreamweaver UltraDev 1.
Description
If this function is implemented, users can paste instances of the specified server behavior using the pasteServerBehavior() function. When the user pastes the server behavior, Adobe 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. Adobe Dreamweaver passes the new behavior object to the pasteServerBehavior() function. 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, Adobe Dreamweaver calls the findServerBehaviors() functions to get a new list of all the server behaviors in the user's document.
Implementing the pasteServerBehavior() function is optional. For more information, see How the Server Behavior API functions are called.
NOTE | If you implement this function, you must also implement the |
Arguments
behavior
- The
behaviorJavaScript object represents the behavior.
Returns
Adobe Dreamweaver expects a Boolean value: true if the behavior pastes successfully from the Clipboard; false otherwise.