Adobe 38040334 - Dreamweaver CS3 User Manual page 260

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

Advertisement

Description
Inserts or updates runtime code for the server behavior. If the
runtime code; otherwise, it updates existing runtime code that is indicated by the
be set as properties on a JavaScript object and passed in as
that are declared as
@@paramName@@
Arguments
paramObj, sbObj
• The
argument is the object that contains the user parameters.
paramObj
• The
argument is the prior server behavior object if you are updating an existing server behavior;
sbObj
otherwise.
Returns
Dreamweaver expects a Boolean value:
otherwise.
false
Example
In the following example, you fill the
function, passing in the input and your server behavior,
function applyServerBehaviors(sbObj) {
// get all UI values here...
paramObj = new Object();
paramObj.rs= rsName.value;
paramObj.col = colName.value;
paramObj.url = urlPath.value;
paramObj.form__tag = formObj;
dwscripts.applySB(paramObj, sbObj);
}
dwscripts.deleteSB()
Availability
Dreamweaver MX (this function replaces the
Description
Deletes all the participants of the
file indicates special delete instructions with the
one server behavior instance (reference count > 1).
Arguments
sbObj
• The
argument is the server behavior object instance that you want to remove from the user's document.
sbObj
Returns
Dreamweaver expects nothing.
paramObj
in the EDML insertion text.
if the server behavior is added successfully to the user's document;
true
object with the user's input and call the
paramObj
sbObj
function from earlier versions of Dreamweaver).
deleteSB()
server behavior instance. The entire participant is deleted, unless the EDML
sbObj
tag. It does not delete participants that belong to more than
delete
argument has a
sbObj
null
object. User settings should
sbObj
. These settings should match all the arguments
dwscripts.applySB()
:
DREAMWEAVER CS3
Extending Dreamweaver
value, it inserts new
null
254

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents