else
selArr = dom.nodeToOffsets(findTable());
dom.setSelection(selArr[0],selArr[1]);
}
dreamweaver.nodeToOffsets() (deprecated)
Availability
Dreamweaver 2; deprecated in 3 in favor of
Description
Gets the position of a specific node in the DOM tree, which is expressed as byte offsets into
the document's source code.
Arguments
node
The
argument must be a tag, comment, or range of text that is a node in the tree
node
that the
dreamweaver.getDocumentDOM()
Returns
An array that contains two integers. The first integer is the byte offset for the opening of the
tag, text, or comment; the second integer is the byte offset for the closing of the node.
dreamweaver.offsetsToNode() (deprecated)
Availability
Dreamweaver 2; deprecated in 3 in favor of
Description
Gets the object in the DOM tree that completely contains the range of characters between the
specified opening and closing points.
Arguments
offsetBegin, offsetEnd
These arguments are the opening and closing points, respectively, of a range of characters,
which is expressed as byte offsets into the document's source code.
Returns
The tag, text, or comment object that completely contains the specified range of characters.
342
Document
"dom.nodeToOffsets()" on page 337
function returns.
"dom.offsetsToNode()" on page 338
.
.
Need help?
Do you have a question about the DREAMWEAVER 8-DREAMWEAVER API and is the answer not in the manual?