User Guide

Server model functions 415
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
serverName,
serverLanguage, and serverVersion properties. The
dom.serverModel.getServerInfo() function returns the information that the server model
author adds to the definition file.
The
serverName, serverLanguage, and serverVersion properties are special because the
developer can access 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.
Description
Determines the server model that is associated with the document and returns that value. The
server language for a site is the value that comes from the Default Scripting Language setting
on the App Server Info tab in the Site Definition dialog box. To get the return value, this
function calls the
getServerLanguage() function in the Server Models API.
NOTE
The other values that are defined in the default server model files are for internal use
only.
NOTE
The Default Scripting Language list exists only in Dreamweaver 4 and earlier versions.
For Dreamweaver MX or later, the Site Definition dialog box does not list supported
scripting languages. Also, for Dreamweaver MX or later, the
dom.serverModel.getServerLanguage() function reads the serverLanguage
property of the object that is returned by a call to the getServerInfo() function in the
Server Models API.
000_DW_API_Print.book Page 415 Wednesday, July 20, 2005 11:58 AM