User Guide
330 Chapter 19: Server Models
getServerExtension()
Availability
Dreamweaver UltraDev 4, deprecated in Dreamweaver MX.
Description
This function returns the default file extension of files that use the current server model. The
serverModel object is set to the server model of the currently selected site if no user document is
currently selected.
Arguments
None.
Returns
Dreamweaver expects a string that represents the supported file extensions.
getServerInfo()
Availability
Dreamweaver MX.
Description
This function returns a JavaScript object that can be accessed from within the JavaScript code.
You can retrieve this object by calling the
dom.serverModel.getServerInfo() JavaScript
function. Furthermore,
serverName, serverLanguage, and serverVersion are special
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;