beautypg.com

Getservermodelfoldername(), Getserversupportscharset() – Adobe Extending Dreamweaver CS4 User Manual

Page 333

background image

327

EXTENDING DREAMWEAVER CS4

Server models

Description
This function returns the name that should appear in the user interface for this server model. You can access this value
from JavaScript by calling the

dom.serverModel.getDisplayName()

function.

Arguments
None.

Returns
Dreamweaver expects a string, such as

"ASP JavaScript"

.

getServerModelFolderName()

Availability
Dreamweaver MX.

Description
This function returns the folder name to use for this server model within the Configuration folder. You can access this
value from JavaScript by calling the

dom.serverModel.getFolderName()

function.

Arguments
None.

Returns
Dreamweaver expects a string, such as

"ASP_JS"

.

getServerSupportsCharset()

Availability
Dreamweaver MX.

Description
This function returns a

true

value if the current server supports the specified character set. From JavaScript, you can

determine whether the server model supports a specific character set by calling the

dom.serverModel.getServerSupportsCharset()

function.

Arguments
metaCharSetString

The metaCharSetString argument is a string that holds the value of the document’s

"charset="

attribute.

Returns
Dreamweaver expects a Boolean value.

This manual is related to the following products: