Description
This function returns a JavaScript object that can be accessed from within the JavaScript code.
You can retrieve this object by calling the
function. Furthermore,
properties, which you can access through the following JavaScript functions:
dom.serverModel.getServerName()
dom.serverModel.getServerLanguage()
dom.serverModel.getServerVersion()
Arguments
None.
Returns
Dreamweaver expects an object that contains the properties of your server model.
Example
var obj = new Object();
obj.serverName = "ASP";
obj.serverLanguage = "JavaScript";
obj.serverVersion = "2.0";
...
return obj;
getServerLanguages()
Availability
Dreamweaver UltraDev 1, deprecated in Dreamweaver MX.
Description
This function returns the supported scripting languages of a server model with an array of
strings. Dreamweaver uses these strings to populate the Default Scripting Language list that is
found in the App Server category in the Site Definition dialog box.
The Default Scripting Language list exists only in Dreamweaver 4 and earlier. For
Dreamweaver MX and later, the Site Definition dialog box does not list supported
scripting languages, nor does Dreamweaver use the
Dreamweaver does not use this function because each server model has only one server
language in Dreamweaver.
In earlier versions of Dreamweaver, a server model could support multiple scripting languages;
for example, the ASP server model supports JavaScript and VBScript.
dom.serverModel.getServerInfo()
,
serverName
serverLanguage
, and
serverVersion
getServerLanguages()
The Server Model API functions
JavaScript
are special
function.
427
Need help?
Do you have a question about the DREAMWEAVER 8-EXTENDING DREAMWEAVER and is the answer not in the manual?
Questions and answers