Dom.servermodel.getserverinfo(), Dom.servermodel.getservername() – Adobe Dreamweaver API Reference CS5 User Manual
Page 381

376
DREAMWEAVER API REFERENCE
Dynamic documents
Last updated 8/27/2013
dom.serverModel.getServerInfo()
Availability
Dreamweaver MX.
Description
Returns information that is specific to the current server model. This information is defined in the HTML definition
file for the server model, which is located in the Configuration/ServerModels folder.
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.
Note: The other values that are defined in the default server model files are for internal use only.
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.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
,
Cold Fusion
,
JSP
,
and
PHP
.
To retrieve the server model name associated with the document, see “
dom.serverModel.getDisplayName()
dom.serverModel.getFolderName()
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.