Adobe 38040334 - Dreamweaver CS3 User Manual page 328

Extending dreamweaver
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

DREAMWEAVER CS3
322
Extending Dreamweaver
Description
This function returns the default file extension of files that use the current server model. The
object
serverModel
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
JavaScript function. Furthermore,
,
dom.serverModel.getServerInfo()
serverName
, and
are special properties, which you can access through the following
serverLanguage
serverVersion
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.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents