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 behavior’s
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).
NO
TE
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
Summary of Contents for DREAMWEAVER 8-DREAMWEAVER API
Page 1: ...Dreamweaver API Reference...
Page 16: ......
Page 28: ...28 The File I O API...
Page 38: ...38 The HTTP API...
Page 68: ...68 Flash Integration...
Page 100: ...100 The Database API...
Page 116: ...116 The JavaBeans API...
Page 144: ...144 The Source Control Integration API...
Page 146: ......
Page 254: ...254 Workspace...
Page 298: ...298 Site...
Page 354: ...354 Document...
Page 396: ...396 Page Content...
Page 488: ...488 Design...
Page 550: ...550 Code...