Specifications

533
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 within which the file was
saved or an empty string if the file is not associated with a site.
dreamweaver.relativeToAbsoluteURL()
Availability
Dreamweaver 2
Description
Given a relative URL and a point of reference (either the path to the current document or the site
root), this function converts the relative URL to an absolute (file://) URL.
Arguments
docPath, siteRoot, relURL
docPath is the path to a document on the users disk (for example, the current document),
which is expressed as a file:// URL or an empty string if relURL is a root-relative URL.
siteRoot is the path to the site root, which is expressed as a file:// URL or an empty string if
relURL is a document-relative URL.
relURL is the URL to be converted.
Returns
An absolute URL string. The return value is generated as described in the following list:
If relURL is an absolute URL, no conversion takes place, and the return value is the same as
relURL.
If relURL is a document-relative URL, the return value is the combination of
docPath + relURL.
If relURL is a root-relative URL, the return value is the combination of siteRoot + relURL.