Server Behavior Implementation Functions - Adobe 38040334 - Dreamweaver CS3 User Manual

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

Advertisement

Arguments
behavior
The
JavaScript object represents the behavior.
behavior
Returns
Dreamweaver expects a Boolean value:
otherwise.

Server behavior implementation functions

These functions can be added or edited within the HTML script files or the specified JavaScript files that are listed
within the HTML script file.
dwscripts.findSBs()
Availability
Dreamweaver MX (this function replaces the
Description
Finds all instances of a server behavior and all the participants on the current page. It sets the title, type, participants
array, weights array, types array,
object that holds an array of user-definable properties such as recordset, name, and column name. You can return
this array from the
findServerBehaviors()
Arguments
serverBehaviorTitle
The
serverBehaviorTitle
which is useful for localization.
Returns
Dreamweaver expects an array of JavaScript objects where the required properties are defined. Returns an empty
array if no instances of the server behavior appear on the page.
Example
The following example searches for all instances of a particular server behavior in the current user document:
function findServerBehaviors() {
allMySBs = dwscripts.findSBs();
return allMySBs;
}
dwscripts.applySB()
Availability
Dreamweaver MX (this function replaces the
if the behavior pastes successfully from the Clipboard;
true
findSBs()
value, and incomplete flag. This function also creates a parameter
selectedNode
function.
argument is an optional title string that is used if no title is specified in the EDML title,
applySB()
function from earlier versions of Dreamweaver).
function from earlier versions of Dreamweaver).
DREAMWEAVER CS3
253
Extending Dreamweaver
false

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents