getServerLanguages()

Availability

Adobe Dreamweaver UltraDev 1, deprecated in Adobe Dreamweaver MX.

Description

This function returns the supported scripting languages of a server model with an array of strings. Adobe 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.

NOTE

The Default Scripting Language list exists only in Adobe Dreamweaver 4 and earlier. For Adobe Dreamweaver MX and later, the Site Definition dialog box does not list supported scripting languages, nor does Adobe Dreamweaver use the getServerLanguages() function. Adobe Dreamweaver does not use this function because each server model has only one server language in Adobe Dreamweaver.

In earlier versions of Adobe Dreamweaver, a server model could support multiple scripting languages; for example, the ASP server model supports JavaScript and VBScript.

If you want a file in the ServerFormats folder to apply only to a specific scripting language, add the following statement so it is the first line in the HTML file:

<!-- SCRIPTING-LANGUAGE=XXX --> 

In this example, XXX represents the scripting language. This statement causes the server behavior to appear in the Plus (+) menu of the Server Behaviors panel only when the currently selected scripting language is XXX.

Arguments

None.

Returns

Adobe Dreamweaver expects an array of strings that represent the supported scripting languages.