User Guide

410 Dynamic Documents
dreamweaver.popupServerBehavior()
Availability
Dreamweaver UltraDev 1.
Description
Applies a new server behavior to the document or modifies an existing behavior. If the user
must specify parameters for the behavior, a dialog box appears.
Arguments
{behaviorName or behaviorObject}
The behaviorName argument, which is optional, is a string that represents the behaviors
name, the title tag of a file, or a filename.
The behaviorObject argument, which is optional, is a behavior object.
If you omit the argument, Dreamweaver runs the currently selected server behavior. If the
argument is the name of a server behavior, Dreamweaver adds the behavior to the page. If the
argument is one of the objects in the array that the
getServerBehaviors() function returns,
a dialog box appears so the user can modify the parameters for the behavior.
Returns
Nothing.
Server model functions
In Macromedia Dreamweaver, each document has an associated document type. For dynamic
document types, Dreamweaver also associates a server model (such as ASP-JS, ColdFusion, or
PHP-MySQL).
Server models are used to group functionality that is specific to a server technology. Different
server behaviors, data sources, and so forth, appear based on the server model that is
associated with the document.
Using the server model functions, you can determine the set of server models that are
currently defined; the name, language, and version of the current server model; and whether
the current server model supports a named character set (such as UTF-8).
NOTE
Dreamweaver reads all the information in the server model HTML file and stores this
information when it first loads the server model. So, when an extension calls functions
such as dom.serverModel.getServerName(),
dom.serverModel.getServerLanguage(), and
dom.serverModel.getServerVersion(), these functions return the stored values.
000_DW_API_Print.book Page 410 Wednesday, July 20, 2005 11:58 AM