340
Document
■
The
bJumpToNode
argument, which is optional, is a Boolean value that indicates whether
to scroll the Document window, if necessary, to make the selection visible. If it is omitted,
this argument defaults to
false
.
Returns
Nothing.
dom.setSelection()
Availability
Dreamweaver 3.
Description
Sets the selection in the document.
Arguments
offsetBegin
,
offsetEnd
■
These arguments are the opening and closing points, respectively, for the new selection,
which is expressed as character offsets into the document’s source code. If the two
numbers are the same, the new selection is an insertion point. If the new selection is not a
valid HTML selection, it is expanded to include the characters in the first valid HTML
selection. For example, if
offsetBegin
and
offsetEnd
define the range
SRC="myImage.gif"
within
<IMG SRC="myImage.gif">
, the selection expands to
include the entire
IMG
tag.
Returns
Nothing.
dreamweaver.getSelection() (deprecated)
Availability
Dreamweaver 2; deprecated in 3. See
“dom.getSelection()” on page 337
.
Description
Gets the selection in the current document, which is expressed as byte offsets into the
document’s source code.
Arguments
None.
000_DW_API_Print.book Page 340 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...