Participant EDML files
351
■
The
beforeNode
value inserts the text before a node, which is a specific location in the
DOM. When a function such as
dwscripts.applySB()
is called to make the insertion,
the node pointer must pass in as a
paramObj
parameter. The user-definable name of this
parameter must be specified by the
nodeParamName
attribute (see
“nodeParamName”
on page 351
).
In summary, if your location includes the word
node
, make sure that you declare the
nodeParamName
tag.
■
The
replaceNode
value replaces a node with the text.
■
The
afterNode
value inserts the text after a node.
■
The
firstChildOfNode
value inserts the text as the first child of a block tag; for example,
if you want to insert something at the beginning of a
FORM
tag.
■
lastChildOfNode
inserts the text as the last child of a block tag; for example, if you want
to insert code at the end of a
FORM
tag (useful for adding hidden form fields).
■
nodeAttattribute]
sets an attribute of a tag node. If the attribute does not
already exist, this value creates it.
For example, use
<insert location="nodeAtACTION"
nodeParamName="form">
to set the
ACTION
attribute of a form. This variation changes
the user’s
FORM
tag from
<form>
to
<form action="myText">
.
If you do not specify an attribute, the
nodeAttribute
location causes the text to be added
directly to the open tag. For example, use
insert location="nodeAttribute"
to add
an optional attribute to a tag. This can be used to change a user’s
INPUT
tag from
<input type="checkbox">
to
<input type="checkbox"
<%if(foo)Reponse.Write("CHECKED")%>>
.
nodeParamName
Description
This attribute is used only for node-relative insert locations. It indicates the name of the
parameter that passes the node in at insertion time.
Parent
insertText
Type
Attribute.
NO
TE
For the
location="nodeAttribute"
attribute value, the last search pattern
determines where the attribute starts and ends. Make sure that the last pattern finds
the entire statement.
Содержание DREAMWEAVER 8-EXTENDING DREAMWEAVER
Страница 1: ...Extending Dreamweaver...
Страница 8: ...8 Contents...
Страница 14: ...14 Introduction...
Страница 16: ......
Страница 54: ...54 Customizing Dreamweaver...
Страница 96: ...96 Customizing Code View...
Страница 98: ......
Страница 110: ...110 Extending Dreamweaver...
Страница 138: ......
Страница 166: ...166 Insert Bar Objects...
Страница 180: ...180 Commands...
Страница 248: ...248 Toolbars...
Страница 260: ...260 Reports...
Страница 278: ...278 Tag Libraries and Editors...
Страница 288: ...288 Property Inspectors...
Страница 378: ...378 Server Behaviors...
Страница 398: ...398 Data Sources...
Страница 432: ...432 Server Models...
Страница 456: ...456 Data Translators...
Страница 482: ......
Страница 492: ...492 The Shared Folder...