Adobe 38040334 - Dreamweaver CS3 User Manual page 103

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

Advertisement

Property or method
data
hasChildNodes()
The dreamweaver and site objects
Dreamweaver implements the standard objects that are accessible through the DOM and adds two custom objects:
and
. These custom objects are widely used within the APIs and in writing extensions. For more
dreamweaver
site
information on the methods of the
Properties of the dreamweaver object
The
object has two read-only properties, which are described in the following list:
dreamweaver
• The
property has the value
appName
• The
property has a value of the form
appVersion
[languageCode] (platform)"
As an example, the value of the
"8.0.XXXX [se] (Win32)"
Note: You can find the version and build number by selecting the Help > About menu item.
The
and
appName
appVersion
versions of Dreamweaver.
To find the specific version of Dreamweaver, check first for the existence of
number, as shown in the following example:
if (dreamweaver.appVersion && dreamweaver.appVersion.indexOf('3.01') != -1){¬
// execute code
}
The
object has a property called
dreamweaver
system. Use this property if you need to include special cases in your extension code for localized operating systems,
as shown in the following example:
if (dreamweaver,systemScript && (dreamweaver.systemScript.indexOf('ja')!=-1){¬
SpecialCase
}
The
property returns the following values for localized operating systems:
systemScript
Language
Japanese
Korean
TChinese
SChinese
Operating systems for all European languages return
Return value
The text string between the comment markers
(
<!-- and -->
)
false
and
dreamweaver
site
"Dreamweaver"
"versionNumber.releaseNumber.buildNumber
.
property for the Swedish Windows version of Dreamweaver CS3 is
appVersion
; the value for the English Macintosh version is
properties were implemented in Dreamweaver 3 and are not available in earlier
systemScript
Value
ja
ko
zh_tw
zh_cn
'en'
objects, see the Dreamweaver API Reference.
.
"8.0.XXXX [en] (MacPPC)"
appVersion
that lets you query the language of the user's operating
.
DREAMWEAVER CS3
Extending Dreamweaver
.
and then for the version
97

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents