Adobe 38040334 API Reference - Page 264
dom.setSelection, dreamweaver.getSelection deprecated, dreamweaver.nodeExists, Availability
![]() |
UPC - 883919090467
View all Adobe 38040334 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 264 highlights
DREAMWEAVER CS3 259 API Reference 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 , 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 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 innerHTML or outerHTML properties of its 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
![](/manual_guide/products/adobe-38040334-api-reference-b593776/264.png)