336
Document
■
The
siteRoot
argument 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.
■
The
relURL
argument is the URL to convert.
Returns
An absolute URL string. The return value is generated, as described in the following list:
■
If
relURL
is an absolute URL, no conversion occurs, 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
.
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 256
.
dom.getSelectedNode()
Availability
Dreamweaver 3.
Description
Gets the selected node. Using this function is equivalent to calling the
dom.getSelection()
function and passing the return value to the
dom.offsetsToNode()
function.
Arguments
None.
Returns
The tag, text, or comment object that completely contains the specified range of characters.
000_DW_API_Print.book Page 336 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...