Path functions
277
Path functions
Path functions get and manipulate the paths to various files and folders on a user’s hard disk.
These functions determine the path to the root of the site in which the current document resides,
convert relative paths to absolute URLs, and more.
dreamweaver.getConfigurationPath()
Availability
Dreamweaver 2.
Description
Gets the path to the Dreamweaver Configuration folder, which is expressed as a file:// URL.
For information on how Dreamweaver accesses Configuration folders on a multiuser platform,
see “C-Level Extensibility” in Extending Dreamweaver Help.
Arguments
None.
Returns
The path to the application configurations.
Example
The following function is useful when referencing other extension files, which are stored in the
Configuration folder in the Dreamweaver application folder:
var sortCmd = dreamweaver.getConfigurationPath() + ¬
"/Commands/Sort Table.htm"
var sortDOM = dreamweaver.getDocumentDOM(sortCmd);
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
dreamweaver.getDocumentDOM()
and reading the
URL
property of the
return value.
Arguments
sourceDoc
•
The value of the
sourceDoc
argument must be
"document"
,
"parent"
,
"parent.frames[
number
]"
, or
"parent.frames['
frameName
']"
. The
"document"
value
specifies the document that has the focus and contains the current selection. The
"parent"
value specifies the parent frameset (if the currently selected document is in a frame), and the
"parent.frames[
number
]"
and
"parent.frames['
frameName
']"
values specify a
document that is in a particular frame within the frameset that contains the current document.
000_DW_API_Print.book Page 277 Wednesday, August 20, 2003 9:14 AM
Содержание DREAMWEAVER MX 2004-DREAMWEAVER API
Страница 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...