Path functions
335
dreamweaver.getTempFolderPath()
Availability
Dreamweaver MX.
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
dw.getTempFolderPath()
function does not return a slash (/) at the end of the path, as do
other Dreamweaver functions (such as
dreamweaver.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
docPath
argument is the path to a document on the user’s computer (for example,
the current document), which is expressed as a file:// URL or an empty string if
relURL
is
a root-relative URL.
000_DW_API_Print.book Page 335 Wednesday, July 20, 2005 11:58 AM
Summary of Contents for DREAMWEAVER 8-DREAMWEAVER API
Page 1: ...Dreamweaver API Reference...
Page 16: ......
Page 28: ...28 The File I O API...
Page 38: ...38 The HTTP API...
Page 68: ...68 Flash Integration...
Page 100: ...100 The Database API...
Page 116: ...116 The JavaBeans API...
Page 144: ...144 The Source Control Integration API...
Page 146: ......
Page 254: ...254 Workspace...
Page 298: ...298 Site...
Page 354: ...354 Document...
Page 396: ...396 Page Content...
Page 488: ...488 Design...
Page 550: ...550 Code...