Adobe 38040334 - Dreamweaver CS3 User Manual page 261

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

Advertisement

dom.getSelectedNode()
Availability
Dreamweaver 3.
Description
Gets the selected node. Using this function is equivalent to calling the
the return value to the
dom.offsetsToNode()
Arguments
None.
Returns
The tag, text, or comment object that completely contains the specified range of characters.
dom.getSelection()
Availability
Dreamweaver 3.
Description
Gets the selection, which is expressed as character offsets into the document's source code.
Arguments
{bAllowMultiple}
• The
argument, which is optional, is a Boolean value that indicates whether the function should
bAllowMultiple
return multiple offsets if more than one table cell, image map hotspot, or layer is selected.
If this argument is omitted, it defaults to
Returns
For simple selections, an array that contains two integers. The first integer is the character offset of the opening of
the selection. The second integer is the character offset at the closing of the selection. If the two numbers are the
same, the current selection is an insertion point.
For complex selections (multiple table cells, multiple layers, or multiple image map hotspots), an array that contains
2
integers, where
is the number of selected items. The first integer in each pair is the character offset of the
n
n
opening of the selection (including the opening
pair is the character offset of the closing of the selection (including the closing
tag). If multiple table rows are selected, the offsets of each cell in each row return. The selection never includes the
tags.
TR
dom.nodeToOffsets()
Availability
Dreamweaver 3.
function.
.
false
,
,
,
TD
DIV
SPAN
LAYER
function and passing
dom.getSelection()
,
, or
tag); the second integer in each
ILAYER
MAP
,
,
,
TD
DIV
SPAN
LAYER
DREAMWEAVER CS3
256
API Reference
,
, or
ILAYER
MAP

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents