278
Chapter 14: 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.
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";
000_DW_API_Print.book Page 278 Wednesday, August 20, 2003 9:14 AM
Содержание DREAMWEAVER MX 2004
Страница 1: ...Dreamweaver API Reference...
Страница 24: ...24 Contents...
Страница 32: ......
Страница 70: ...70 Chapter 5 Fireworks Integration...
Страница 76: ...76 Chapter 6 Flash Integration...
Страница 116: ...116 Chapter 9 The JavaBeans API...
Страница 140: ......
Страница 152: ...152 Chapter 11 Application...
Страница 218: ...218 Chapter 12 Workspace...
Страница 248: ...248 Chapter 13 Site...
Страница 292: ...292 Chapter 14 Document...
Страница 378: ...378 Chapter 17 Design...
Страница 430: ...430 Chapter 18 Code...
Страница 486: ...486 Index...