Adobe 38040334 - Dreamweaver CS3 User Manual page 256

Extending dreamweaver
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

canApplyServerBehavior()
Availability
Dreamweaver UltraDev 1.
Description
Determines whether a behavior can be applied. Dreamweaver calls this function before the Server Behaviors dialog
box appears. If this function returns a
a
value, the Server Behaviors dialog box does not appear and the attempt to add a server behavior stops.
false
Arguments
serverBehavior
The
JavaScript object represents the behavior; it is necessary to modify an existing behavior. If this
serverBehavior
is a new behavior, the argument is
Returns
Dreamweaver expects a Boolean value:
copyServerBehavior()
Availability
Dreamweaver UltraDev 1.
Description
Implementing the
copyServerBehavior()
behavior. In the following example, this function is implemented for recordsets. If a user selects a recordset in the
Server Behaviors panel or the Data Binding panel, using the Copy command copies the behavior to the Clipboard;
using the Cut command cuts the behavior to the Clipboard. For server behaviors that do not implement this
function, the Copy and Cut commands do nothing. For more information, see "How the server behavior API
functions are called" on page 247.
The
copyServerBehavior()
strings to exchange information with the
so
nodes in the document should be resolved and the resulting raw text should be saved into a
participant
secondary property.
Note: The pasteServerBehavior() function must also be implemented to let the user paste the behavior into any
Dreamweaver document.
Arguments
serverBehavior
• The
JavaScript object represents the behavior.
serverBehavior
Returns
Dreamweaver expects a Boolean value:
value, the Server Behaviors dialog box appears. If this function returns
true
.
null
if the behavior can be applied;
true
function is optional. Users can copy instances of the specified server
function should rely only on behavior object properties that can be converted into
pasteServerBehavior()
if the behavior copies successfully to the Clipboard;
true
otherwise.
false
function. The Clipboard stores only raw text,
DREAMWEAVER CS3
250
Extending Dreamweaver
otherwise.
false

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents