Description
Determines whether the server model that is associated with the document supports the
named character set.
In addition to letting you call this function from the JavaScript layer, Dreamweaver calls
this function when the user changes the encoding in the page Properties dialog box. If
the server model does not support the new character encoding, this function returns
false and Dreamweaver pops up a warning dialog box that asks if the user wants to do
the conversion. An example of this situation is when a user attempts to convert a
ColdFusion 4.5 document to UTF-8 because ColdFusion does not support UTF-8
encoding.
Arguments
metaCharSetString
The
metaCharSetString
This value is the same as that of the
with a document. Supported values for a given server model are defined in the HTML
definition file for the server model, which is located in the Configuration/ServerModels
folder.
Returns
A Boolean value:
true
dom.serverModel.getServerVersion()
Availability
UltraDev 1; enhanced in Dreamweaver MX.
Description
Determines the server model that is associated with the document and returns that value.
Each server model has a
which returns a table of name-version pairs.
For Dreamweaver, dom.serverModel.getServerVersion() first reads the
serverVersion property of the object that is returned by a call to getServerInfo() in
the Server Models API. If that property does not exist,
dom.serverModel.getServerVersion() reads it from the getVersionArray()
function.
argument is a string value that names a particular character set.
"charset="
if the server model supports the named character set;
getVersionArray()
attribute of a
meta
function, as defined in the Server Models API,
Server model functions
tag that is associated
otherwise.
false
417
Need help?
Do you have a question about the DREAMWEAVER 8-DREAMWEAVER API and is the answer not in the manual?