Selection functions
285
dreamweaver.selectAll()
Availability
Dreamweaver 3.
Description
Performs a Select All operation in the active document window, the Site panel or, on the
Macintosh, the text field that has focus in a dialog box or floating panel.
Note:
If the operation takes place in the active document, it usually selects all the content in the active
document. In some cases (for example, when the insertion point is inside a table), however, it selects
only part of the active document. To set the selection to the entire document, use the
dom.setSelection()
function.
Arguments
None.
Returns
Nothing.
Enabler
“dreamweaver.canSelectAll()” on page 448
.
dreamweaver.setSelection() (deprecated)
Availability
Dreamweaver 2; deprecated in 3 in favor of
“dom.setSelection()” on page 282
.
Description
Sets the selection in the current document. This function can move the selection only within the
current document; it cannot change the focus to a different document.
Arguments
offsetBegin
,
offsetEnd
•
These arguments are the opening and closing points, respectively, for the new selection, which
is expressed as byte 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.
000_DW_API_Print.book Page 285 Wednesday, August 20, 2003 9:14 AM
Summary of Contents for DREAMWEAVER MX 2004
Page 1: ...Dreamweaver API Reference...
Page 24: ...24 Contents...
Page 32: ......
Page 70: ...70 Chapter 5 Fireworks Integration...
Page 76: ...76 Chapter 6 Flash Integration...
Page 116: ...116 Chapter 9 The JavaBeans API...
Page 140: ......
Page 152: ...152 Chapter 11 Application...
Page 218: ...218 Chapter 12 Workspace...
Page 248: ...248 Chapter 13 Site...
Page 292: ...292 Chapter 14 Document...
Page 378: ...378 Chapter 17 Design...
Page 430: ...430 Chapter 18 Code...
Page 486: ...486 Index...