Adobe 38040334 - Dreamweaver CS3 User Manual page 253

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

Advertisement

Description
Uses the internal Dreamweaver URL decoding mechanism to decode special characters and symbols in URL strings.
For example, this function decodes
Arguments
inStr
• The
argument is the string to decode.
inStr
Returns
A string that contains the decoded URL.
Example
The following example calls
resulting string in
:
outstr
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+Below&newtaddr=500+El+Camino&newtcsz=Santa+Clara%2C+CA&
newtcountry=us&Submit=Get+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
Netscape Navigator 4.0 and Internet Explorer 4.0. This argument specifies for which browser to return a valid
reference.
• The
argument is a tag object in the DOM tree.
tagObject
Returns
A string that represents a valid JavaScript reference to the object, such as
string is subject to the following conditions:
• Dreamweaver returns correct references for Internet Explorer for
,
,
SELECT
OPTION
TEXTAREA
• Dreamweaver returns correct references for Netscape Navigator for
,
,
SELECT
OPTION
TEXTAREA
tags that are not absolutely positioned, Dreamweaver returns
SPAN
• Dreamweaver does not return references for unnamed objects. If an object does not contain either a
attribute, Dreamweaver returns
ID
Dreamweaver references the object by index (for example,
to a space character and the name
%20
to decode the special characters in its argument and store the
dw.doURLDecoding()
or
"NS 4.0"
"IE 4.0"
,
, and
tags.
OBJECT
IMG
,
, and
tags, and for absolutely positioned
OBJECT
IMG
"unnamed <tag>"
to ".
&quot
. The DOM and rules for nested references differ in
document.layers['myLayer']
,
,
A
AREA
APPLET
,
,
A
AREA
APPLET
DIV
"cannot reference <tag>"
. If the browser does not support a reference by name,
document.myform.applets[3]
DREAMWEAVER CS3
API Reference
¬
¬
. The
,
,
,
,
,
EMBED
DIV
SPAN
INPUT
,
,
,
,
EMBED
LAYER
ILAYER
and
tags. For
SPAN
DIV
.
or an
NAME
).
248
¬
¬
and

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents