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.
Note: 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
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.
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,
to appear in the Plus (+) menu of the Server Behaviors panel only when the currently selected
scripting language is
Arguments
None.
Returns
Dreamweaver expects an array of strings that represent the supported scripting languages.
getServerModelExtDataNameUD4()
Availability
Dreamweaver MX.
Description
This function returns the server model implementation name that Dreamweaver should
use when accessing the UltraDev 4 extension data files that reside in the Configurations/
ExtensionData folder.
Arguments
None.
Returns
Dreamweaver expects a string, such as
represents the scripting language. This statement causes the server behavior
XXX
.
XXX
getServerLanguages()
.
"ASP/JavaScript"
function. Dreamweaver does not
The Server Model API functions
331
Need help?
Do you have a question about the DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER and is the answer not in the manual?