Adobe 38040334 - Dreamweaver CS3 User Manual page 255

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

Advertisement

One purpose of the
analyzeServerBehavior()
,
participants
selectedNode
the
findServerBehaviors()
The other purpose of the
analyzeServerBehavior()
same tag in the user's document. In this case, the
Suppose the Recordset1, DynamicText1, and DynamicText2 server behaviors are on a page. Both DynamicText
server behaviors need Recordset1 to exist on the page. After the server behaviors are found with the
findServerBehaviors()
server behaviors. When the
the array of all the server behavior objects on the page, looking for the one that belongs to Recordset1. If a server
behavior object that belongs to Recordset1 cannot be found, the
an exclamation point appears in the Server Behaviors panel, which alerts the user that a problem exists. Similarly,
when the
analyzeServerBehavior()
belongs to Recordset1. Because Recordset1 does not depend on other server behaviors, it does not need to define the
analyzeServerBehavior()
Arguments
, [
serverBehavior
serverBehaviorArray
• The
argument is a JavaScript object that represents the behavior to analyze.
serverBehavior
• The
[serverBehaviorArray]
that are found on a page.
Returns
Dreamweaver expects nothing.
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 an 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 253.
Arguments
serverBehavior
The
JavaScript object represents the server behavior; it is necessary to modify an existing behavior.
serverBehavior
If this is a new behavior, the argument is
Returns
Dreamweaver expects an empty string if successful or an error message if this function fails.
function is to finish setting all the properties (
, and
) on the behavior object. Sometimes it's easier to perform this task after
title
function generates the complete list of server behaviors in the user's document.
deleted
function, Dreamweaver calls the
analyzeServerBehavior()
function is called for DynamicText2, the function searches for the object that
function in this example.
]
argument is an array of JavaScript objects that represents all the server behaviors
.
null
function is to notice when two or more behaviors refer to the
property removes all but one behavior from the array.
analyzeServerBehavior()
function is called for DynamicText1, the function searches
property is set to the value
incomplete
DREAMWEAVER CS3
Extending Dreamweaver
,
incomplete
function for the three
so that
true
249

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents