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