Selection Functions - Adobe 38040334 - Dreamweaver CS3 User Manual

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

Advertisement

Description
Gets the full path to a temporary folder where you can store temporary or transient files. This function looks for a
Temp folder inside the Dreamweaver Configuration folder. If the system supports multiple users, it looks in the user's
Configuration folder. If a Temp folder does not exist, the function creates it. Shared files that are not transient should
be stored in the Configuration/Shared folder.
Arguments
None.
Returns
The full path to the folder, which is expressed as a file:// URL.
Example
The following line of code returns the full path for the specified file. The
not return a slash (/) at the end of the path, as do other Dreamweaver functions (such as
):
weaver.getSiteRoot()
var myTempfile = dw.getTempFolderPath() + "/myTempFile.txt";
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
• The
argument is the path to a document on the user's computer (for example, the current document),
docPath
which is expressed as a file:// URL or an empty string if
• The
argument is the path to the site root, which is expressed as a file:// URL or an empty string if
siteRoot
is a document-relative URL.
relURL
• The
argument is the URL to convert.
relURL
Returns
An absolute URL string. The return value is generated, as described in the following list:
• If
is an absolute URL, no conversion occurs, and the return value is the same as
relURL
• If
is a document-relative URL, the return value is the combination of
relURL
• If
is a root-relative URL, the return value is the combination of
relURL

Selection functions

Selection functions get and set the selection in open documents. For information on getting or setting the selection
in the Site panel, see "Site functions" on page 194.
dw.getTempFolderPath()
is a root-relative URL.
relURL
docPath
siteRoot
DREAMWEAVER CS3
API Reference
function does
dream-
.
relURL
+
.
relURL
+
.
relURL
255

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents