Specifications

553
Example
If the user creates a site and specifies that the testing server is on the local computer and that the
root folder is named
"employeeapp", a call to dom.serverModel.getAppURLPrefix() returns
this string:
http://localhost/employeeapp/
dom.serverModel.getDelimiters()
Availability
Dreamweaver MX
Description
Lets JavaScript code get the script delimiters for each server model, so managing the server model
code can be separated from managing the user-scripted code.
Arguments
None.
Returns
An array of objects where each object contains the following three properties:
startPattern is a regular expression that matches the opening script delimiter.
endPattern is a regular expression that matches the closing script delimiter.
participateInMerge is a Boolean value that specifies whether the content that is enclosed in
the listed delimiters should (
true) or should not (false) participate in block merging.
dom.serverModel.getDisplayName()
Availability
Dreamweaver MX
Description
Gets the name of the server model that appears in the user interface.
Arguments
None.
Returns
A string, the value of which is the name of the server model.
dom.serverModel.getFolderName()
Availability
Dreamweaver MX
Description
Gets the name of the folder that is used for this server model within the Configuration folder
(such as in the ServerModels subfolder).
Arguments
None.