Adobe 38040334 - Dreamweaver CS3 User Manual page 270

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

Advertisement

Value
The value is the text to insert in the document. If any parts of the text need customizing, they can be passed in later
as parameters. Arguments should be embedded within two at (
EDML structure, it should use the
<insertText location="aboveHTML">
<![CDATA[<%= @@recordset@@).cursorType %>]]>
</insertText>
When the text is inserted, the
more information on conditional and repeating code blocks, see "Adding Custom Server Behaviors" in Getting
Started with Dreamweaver.
<insertText> attributes
The following items are valid attributes of the
location
Description
This attribute specifies where the participant text should be inserted. The insert location is related to the
attribute of the
whereToSearch
page 266).
Parent
insertText
Type
Attribute.
Required
Yes.
Values
,
aboveHTML[+weight]
belowHTML[+weight]
,
afterSelection
beforeNode
nodeAttribute[+attribute]
• The
aboveHTML[+weight]
can be an integer from
1
recordsets have a weight of
, so the code is inserted below the recordset, as shown in the following example:
60
<insert location="aboveHTML+60">
If no weight is provided, it is internally assigned a weight of
ipants, as shown in the following example:
<insert location="aboveHTML">
• The
belowHTML[+weight]
closing
tag.
/HTML
• The
beforeSelection
selection, it inserts the text at the end of the
construct, as shown in the following example:
CDATA
argument is replaced by a recordset name that the user supplies. For
@@recordset@@
insertText
tag, so be sure to set both carefully (see "whereToSearch" on
searchPatterns
,
beforeSelection
,
,
replaceNode
afterNode
value inserts the text above the
to
and is used to preserve relative order among different participants. By convention,
99
, so if a participant refers to recordset variables, it needs a heavier weight, such as
50
value is similar to the
aboveHTML
value inserts the text before the current selection or insertion point. If there is no
tag.
body
) signs. Because this text can interfere with the
@@
tag.
,
replaceSelection
,
,
firstChildOfNode
lastChildOfNode
tag (suitable only for server code). The weight
HTML
and is added below all specifically weighted partic-
100
value, except that participants are added below the
DREAMWEAVER CS3
Extending Dreamweaver
,
,
wrapSelection
,
264

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents