Adobe 38040334 - Dreamweaver CS3 User Manual page 264

Api reference
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

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
within
<IMG SRC="myImage.gif">
Returns
Nothing.
dreamweaver.getSelection() (deprecated)
Availability
Dreamweaver 2; deprecated in 3. See "dom.getSelection()" on page 256.
Description
Gets the selection in the current document, which is expressed as byte offsets into the document's source code.
Arguments
None.
Returns
An array that contains two integers. The first integer is the byte offset for the beginning of the selection; the second
integer is the byte offset for the end of the selection. If the two numbers are the same, the current selection is an
insertion point.
dreamweaver.nodeExists()
Available
Dreamweaver 3.
Description
Determines whether the reference to the specified node is still good. Often when writing extensions, you reference
a node and then perform an operation that deletes it (such as setting the
parent). This function lets you confirm that the node hasn't been deleted before you attempt to reference any of its
properties or methods. The referenced node does not need to be in the current document.
Arguments
node
and
offsetBegin
offsetEnd
, the selection expands to include the entire
define the range
SRC="myImage.gif"
tag.
IMG
or
innerHTML
outerHTML
DREAMWEAVER CS3
259
API Reference
properties of its

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents