Adobe 38040334 - Dreamweaver CS3 User Manual page 259

Api reference
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

Example
The following function is useful when referencing other extension files, which are stored in the Configuration folder
in the Dreamweaver application folder:
var sortCmd = dreamweaver.getConfigurationPath() + ¬
"/Commands/Sort Table.htm"
var sortDOM = dreamweaver.getDocumentDOM(sortCmd);
dreamweaver.getDocumentPath()
Availability
Dreamweaver 1.2.
Description
Gets the path of the specified document, which is expressed as a file:// URL. This function is equivalent to calling
dreamweaver.getDocumentDOM()
Arguments
sourceDoc
• The value of the
sourceDoc
"parent.frames['frameName']"
contains the current selection. The
document is in a frame), and the
specify a document that is in a particular frame within the frameset that contains the current document.
Returns
Either a string that contains the URL of the specified document if the file was saved or an empty string if the file was
not saved.
dreamweaver.getSiteRoot()
Availability
Dreamweaver 1.2.
Description
Gets the local root folder (as specified in the Site Definition dialog box) for the site that is associated with the
currently selected document, which is expressed as a file:// URL.
Arguments
None.
Returns
Either a string that contains the URL of the local root folder of the site where the file is saved or an empty string if
the file is not associated with a site.
dreamweaver.getTempFolderPath()
Availability
Dreamweaver MX.
and reading the
property of the return value.
URL
argument must be
"document"
. The
value specifies the document that has the focus and
"document"
value specifies the parent frameset (if the currently selected
"parent"
"parent.frames[number]"
,
,
"parent"
"parent.frames[number]"
and
"parent.frames['frameName']"
DREAMWEAVER CS3
254
API Reference
, or
values

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents