Dreamweaver.getelementref() - MACROMEDIA DREAMWEAVER MX 2004-DREAMWEAVER API Reference

Dreamweaver api reference
Table of Contents

Advertisement

Example
The following example calls
argument and store the resulting string in
outStr = dreamweaver.doURLDecoding("http://maps.yahoo.com/py/
ddResults.py?Pyt=Tmap&tarname=&tardesc=&newname=&newdesc=&newHash=&newTHash
=&newSts=&newTSts=&tlt=&tln=&slt=&sln=&newFL=Use+Address+Below&newaddr=2000
+Shamrock+Rd&newcsz=Metroo+Park%2C+CA&newcountry=us&newTFL=Use+Address+Belo
w&newtaddr=500+El+Camino&newtcsz=Santa+Clara%2C+CA&newtcountry=us&Submit=Ge
t+Directions")

dreamweaver.getElementRef()

Availability
Dreamweaver 2.
Description
Gets the Netscape Navigator or Internet Explorer object reference for a specific tag object in the
DOM tree.
Arguments
,
NSorIE
tagObject
The
argument must be either
NSorIE
references differ in Netscape Navigator 4.0 and Internet Explorer 4.0. This argument specifies
for which browser to return a valid reference.
The
tagObject
Returns
A string that represents a valid JavaScript reference to the object, such as
document.layers['myLayer']
Dreamweaver returns correct references for Internet Explorer for
,
,
SPAN
INPUT
Dreamweaver returns correct references for Netscape Navigator for
,
LAYER
ILAYER
positioned
DIV
Dreamweaver returns
Dreamweaver does not return references for unnamed objects. If an object does not contain
either a
NAME
not support a reference by name, Dreamweaver references the object by index (for example,
document.myform.applets[3]
Dreamweaver returns references for named objects that are contained in unnamed forms and
layers (for example,
dw.doURLDecoding()
argument is a tag object in the DOM tree.
. The string is subject to the following conditions:
,
,
SELECT
OPTION
TEXTAREA
,
,
,
SELECT
OPTION
TEXTAREA
and
tags. For
SPAN
DIV
"cannot reference <tag>"
or an
attribute, Dreamweaver returns
ID
).
document.forms[2].myCheckbox
to decode the special characters in its
:
outstr
or
"NS 4.0"
"IE 4.0"
,
, and
OBJECT
IMG
,
, and
OBJECT
IMG
and
tags that are not absolutely positioned,
SPAN
.
"unnamed <tag>"
).
. The DOM and rules for nested
,
,
A
AREA
APPLET
tags.
,
,
A
AREA
APPLET
tags, and for absolutely
. If the browser does
Global document functions
,
,
,
EMBED
DIV
,
,
EMBED
271

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver mx 2004

Table of Contents