User Guide

Server model functions 411
dom.serverModel.getAppURLPrefix()
Availability
Dreamweaver MX.
Description
Returns the URL for the sites root folder on the testing server. This URL is the same as that
specified for the Testing Server on the Advanced tab in the Site Definition dialog box.
When Dreamweaver communicates with your testing server, it uses HTTP (the same way as a
browser). When doing so, it uses this URL to access your sites root folder.
Arguments
None.
Returns
A string, which holds the URL to the application server that is used for live data and
debugging purposes.
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 the
dom.serverModel.getAppURLPrefix() function returns the following string:
http://localhost/employeeapp/
dom.serverModel.getDelimiters()
Availability
Dreamweaver MX.
Description
Lets JavaScript code get the script delimiter for each server model, so managing the server
model code can be separated from managing the user-scripted code.
Arguments
None.
000_DW_API_Print.book Page 411 Wednesday, July 20, 2005 11:58 AM