Adobe 38040334 - Dreamweaver CS3 User Manual page 333

Api reference
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

The search pattern contains a JavaScript regular expression that specifies two submatches (both of which are
contained within parentheses). The first submatch is for the text string
file reference.
To access the translator URL pattern, your code should look like the following example:
var serverModel = dw.getDocumentDOM().serverModel;
var includeArray = new Array();
includeArray = serverModel.getServerIncludeUrlPatterns();
The call to
serverModel.getServerIncludeUrlPatterns()
Property
Return value
pattern
/<!--\s*#include\s+(file|virtual)\s*=\s*"([^"]*)"\s*-->/i
fileRef
2
type
ssi_comment
dom.serverModel.getServerInfo()
Availability
Dreamweaver MX.
Description
Returns information that is specific to the current server model. This information is defined in the HTML definition
file for the server model, which is located in the Configuration/ServerModels folder.
You can modify the information in the HTML definition file or place additional variable values or functions in the
file. For example, you can modify the
dom.serverModel.getServerInfo()
definition file.
Note: The other values that are defined in the default server model files are for internal use only.
The
,
serverName
serverLanguage
them directly by using the following corresponding functions:
dom.serverModel.getServerName()
dom.serverModel.getServerLanguage()
dom.serverModel.getServerVersion()
Arguments
None.
Returns
A JavaScript object that contains a variety of information that is specific to the current server model.
dom.serverModel.getServerLanguage() (deprecated)
Availability
UltraDev 1; deprecated in Dreamweaver MX.
,
serverName
serverLanguage
function returns the information that the server model author adds to the
, and
properties are special because the developer can access
serverVersion
or
. The second submatch is a
file
virtual
returns the following three properties:
, and
serverVersion
DREAMWEAVER CS3
API Reference
properties. The
328

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents