User Guide

342 Chapter 16: Dynamic Documents
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 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.
Arguments
None.
Returns
A string that contains the supported scripting languages.
dom.serverModel.getServerName()
Availability
Dreamweaver 1; enhanced in Dreamweaver MX.
Description
Retrieves the server name that is associated with the document and returns that value. The server
name differentiates between server technologies (such as ASP.NET and JSP), but does not
differentiate between languages on the same server technology (such as ASP.NET VB and
ASP.NET C#). Possible values include
ASP, ASP.NET, ColdFusion, JSP, and PHP.
To retrieve the server model name associated with the document, see
dom.serverModel.getDisplayName()” on page 339 or dom.serverModel.getFolderName()”
on page 339.
Note: For Dreamweaver MX, or later, dom.serverModel.getServerName() reads the serverName
property of the object that is returned by a call to the
getServerInfo() function in the Server
Models API.
Arguments
None.
Returns
A string that contains the server name.
000_DW_API_Print.book Page 342 Wednesday, August 20, 2003 9:14 AM