User Guide
Selection functions 343
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.
Arguments
None.
Returns
Nothing.
Enabler
See “dreamweaver.canSelectAll()” on page 573.
dreamweaver.setSelection() (deprecated)
Availability
Dreamweaver 2; deprecated in 3 in favor of “dom.setSelection()” on page 340.
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.
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.
000_DW_API_Print.book Page 343 Wednesday, July 20, 2005 11:58 AM