Server behavior implementation functions
335
Returns
Dreamweaver expects a Boolean value:
true
if the behavior pastes successfully from the
Clipboard;
false
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
findSBs()
function from earlier versions
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,
selectedNode
value, and incomplete
flag. This 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
findServerBehaviors()
function.
Arguments
serverBehaviorTitle
■
The
serverBehaviorTitle
argument is an optional title string that is used if no title is
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;
}
Summary of Contents for DREAMWEAVER 8-EXTENDING DREAMWEAVER
Page 1: ...Extending Dreamweaver...
Page 8: ...8 Contents...
Page 14: ...14 Introduction...
Page 16: ......
Page 54: ...54 Customizing Dreamweaver...
Page 96: ...96 Customizing Code View...
Page 98: ......
Page 110: ...110 Extending Dreamweaver...
Page 138: ......
Page 166: ...166 Insert Bar Objects...
Page 180: ...180 Commands...
Page 248: ...248 Toolbars...
Page 260: ...260 Reports...
Page 278: ...278 Tag Libraries and Editors...
Page 288: ...288 Property Inspectors...
Page 378: ...378 Server Behaviors...
Page 398: ...398 Data Sources...
Page 432: ...432 Server Models...
Page 456: ...456 Data Translators...
Page 482: ......
Page 492: ...492 The Shared Folder...