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
Summary of Contents for DREAMWEAVER MX 2004
Page 1: ...Dreamweaver API Reference...
Page 24: ...24 Contents...
Page 32: ......
Page 70: ...70 Chapter 5 Fireworks Integration...
Page 76: ...76 Chapter 6 Flash Integration...
Page 116: ...116 Chapter 9 The JavaBeans API...
Page 140: ......
Page 152: ...152 Chapter 11 Application...
Page 218: ...218 Chapter 12 Workspace...
Page 248: ...248 Chapter 13 Site...
Page 292: ...292 Chapter 14 Document...
Page 378: ...378 Chapter 17 Design...
Page 430: ...430 Chapter 18 Code...
Page 486: ...486 Index...