Adobe 38040334 - Dreamweaver CS3 User Manual page 271

Extending dreamweaver
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

• The
replaceSelection
text at the end of the
body
• The
value balances the current selection, inserts a block tag before the selection, and adds the
wrapSelection
appropriate closing tag after the selection.
• The
value inserts the text after the current selection or insertion point. If there is no selection,
afterSelection
it inserts the text at the end of the
• The
value inserts the text before a node, which is a specific location in the DOM. When a function
beforeNode
such as
dwscripts.applySB()
parameter. The user-definable name of this parameter must be specified by the
"nodeParamName" on page 265).
In summary, if your location includes the word
• The
value replaces a node with the text.
replaceNode
• The
value inserts the text after a node.
afterNode
• The
firstChildOfNode
something at the beginning of a
inserts the text as the last child of a block tag; for example, if you want to insert code at the end
lastChildOfNode
of a
tag, which is useful for adding hidden form fields.
FORM
nodeAttribute[+attribute]
creates it.
For example, use
<insert location="nodeAttribute+ACTION" nodeParamName="form">
attribute of a form. This variation changes the user's
If you do not specify an attribute, the
For example, use
insert location="nodeAttribute"
change a user's
tag from
INPUT
<%if(foo)Reponse.Write("CHECKED")%>>
Note: 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.
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.
Required
This attribute is required only if the insert location contains the word
value replaces the current selection with the text. If there is no selection, it inserts the
tag.
tag.
body
is called to make the insertion, the node pointer must pass in as a
, make sure that you declare the
node
value inserts the text as the first child of a block tag; for example, if you want to insert
tag.
FORM
sets an attribute of a tag node. If the attribute does not already exist, this value
FORM
nodeAttribute
<input type="checkbox">
.
tag from
to
<form>
<form action="myText">
location causes the text to be added directly to the open tag.
to add an optional attribute to a tag. This can be used to
to
<input type="checkbox"
.
node
DREAMWEAVER CS3
Extending Dreamweaver
paramObj
attribute (see
nodeParamName
tag.
nodeParamName
to set the
ACTION
.
265

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents