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
return value.
Arguments
sourceDoc
The value of the
sourceDoc
"parent.frames[number]"
value specifies the document that has the focus and contains the current selection. The
value specifies the parent frameset (if the currently selected document is in a
"parent"
frame), and the
"parent.frames[number]"
values 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.
334
Document
dreamweaver.getDocumentDOM()
argument must be
, or
"parent.frames['frameName']"
and reading the
,
"document"
"parent"
and
"parent.frames['frameName']"
property of the
URL
,
. The
"document"
Need help?
Do you have a question about the DREAMWEAVER 8-DREAMWEAVER API and is the answer not in the manual?