beautypg.com

Searchpattern – Adobe Extending Dreamweaver CS4 User Manual

Page 276

background image

270

EXTENDING DREAMWEAVER CS4

Server behaviors

Parent

searchPatterns

Type
Attribute.

Required
Yes.

Values

directive

,

tag+tagName

, tag+*, comment, text

The directive value searches all server directives (server-specific tags). For ASP and JSP, this means search all

<%

... %>

script blocks.

Note: Tag attributes are not searched, even if they contain directives.

The tag+tagName value searches the contents of a specified tag, as shown in the following example:

This example searches only

form

tags. By default, the entire

outerHTML

node is searched. For

INPUT

tags, specify

the type after a slash (/). In the following example, to search all submit buttons, use the following code:

.

The tag+* value searches the contents of any tag, as shown in the following example:

This example searches all tags.

The comment value searches only within the HTML comments

, as shown in the following example:

This example searches tags such as

.

The text value searches only within raw text sections, as shown in the following example:

XYZ

This example finds a text node that contains the text

XYZ

.

Description
This tag is a pattern that identifies participant text and extracts parameter values from it. Each parameter
subexpression must be enclosed in parentheses ().

You can have patterns with no parameters (which are used to identify participant text), patterns with one parameter,
or patterns with many parameters. All non-optional patterns must be found, and each parameter must be named and
found exactly once.

For more information about using the

searchPattern

tag, see “

Finding server behaviors

” on page 283.

This manual is related to the following products: