Searchpatterns, Searchpatterns> attributes, Wheretosearch – Adobe Extending Dreamweaver CS4 User Manual
Page 275
269
EXTENDING DREAMWEAVER CS4
Server behaviors
Required
This attribute is required only if the insert location contains the word
node
.
Value
The tagtype_Tag value is a user-specified name for the node parameter that passes with the parameter object to the
dwscripts.applySB()
function. For example, if you insert some text into a form, you might use a form_tag
parameter. In your server behavior
applyServerBehavior()
function, you could use the form_tag parameter to
indicate the exact form to update, as shown in the following example:
function applyServerBehavior(ssRec) {
var paramObj = new Object();
paramObj.rs = getRecordsetName();
paramObj.form_tag = getFormNode();
dwscripts.applySB(paramObj, sbObj);
}
You can indicate the
form_tag
node parameter in your EDML file, as shown in the following example:
The text is inserted as the
lastChildOfNode
value, and the specific node passes in using the
form_tag
property of the
parameter object.
Description
This tag provides information about finding the participant text in the document, and it contains a list of patterns that
are used when searching for a participant. If multiple search patterns are defined, they must all be found within the
text being searched (the search patterns have a logical AND relationship), unless they are marked as optional using the
isOptional
flag.
Parent
implementation
Type
Block tag.
Required
No.
The following items are valid attributes of the
searchPatterns
tag.
whereToSearch
Description
This attribute specifies where to search for the participant text. This attribute is related to the insert location, so be sure
to set each attribute carefully (see “