Server Behavior Implementation Functions; Dwscripts.findsbs() - MACROMEDIA DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER Manual

Extending dreamweaver
Hide thumbs Also See for DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER:
Table of Contents

Advertisement

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
of Dreamweaver).
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,
function also creates a parameter object that holds an array of user-definable properties such as
recordset, name, and column name. You can return this array from the
function.
Arguments
serverBehaviorTitle
The
serverBehaviorTitle
specified in the EDML title, 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;
}
258
Chapter 15: Server Behaviors
findSBs()
selectedNode
argument is an optional title string that is used if no title is
function from earlier versions
value, and incomplete flag. This
findServerBehaviors()

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER and is the answer not in the manual?

This manual is also suitable for:

Dreamweaver mx 2004

Table of Contents