dwscripts.findSBs()
Availability
Adobe Dreamweaver MX (this function replaces the findSBs() function from earlier versions of Adobe 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
serverBehaviorTitleargument is an optional title string that is used if no title is specified in the EDML title, which is useful for localization.
Returns
Adobe 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;}