Adobe 38040334 - Dreamweaver CS3 User Manual page 276

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

Advertisement

This example indicates that only the value of the
is not defined, the tag is ignored.
• The
value searches only the outer tag and ignores the
tagOnly
is a tag.
whereToSearch
• The
value searches only the
innerOnly
is a tag.
whereToSearch
isOptional
Description
This attribute is a flag that indicates that the search pattern is not required to find the participant. This is useful for
complex participants that might have non-critical parameters to extract. You can create some patterns for distinctly
identifying a participant and have some optional patterns for extracting non-critical parameters.
Parent
searchPattern
Type
Attribute.
Required
No.
Values
,
true
false
• The value is
if the
true
• The value is
(default) if the
false
For example, consider the following simple recordset string:
<%
var Recordset1 = Server.CreateObject("ADODB.Recordset");
Recordset1.ActiveConnection = "dsn=andescoffee;";
Recordset1.Source = "SELECT * FROM PressReleases";
Recordset1.CursorType = 3;
Recordset1.Open();
%>
The search patterns must identify the participant and extract several parameters. However, if a parameter such as
is not found, you should still recognize this pattern as a recordset. The
cursorType
In the EDML, the search patterns might look like the following example:
<searchPattern paramNames="rs">/var (\w+) = Server.CreateObject/
</searchPattern>
<searchPattern paramNames="src">/ActiveConnection = "([^\r\n]*)"/</searchPattern>
<searchPattern paramNames="conn">/Source = "([^\r\n]*)"/</searchPattern>
<searchPattern paramNames="cursor" isOptional="true">/CursorType = (\d+)/
</searchPattern>
The first three patterns are required to identify the recordset. If the last parameter is not found, the recordset is still
identified.
ACTION
innerHTML
is not necessary to identify the participant.
searchPattern
searchPattern
attribute of
tags should be searched. If that attribute
FORM
tag. This value is valid only if
innerHTML
tag and ignores the outer tag. This value is valid only if
tag is required.
DREAMWEAVER CS3
Extending Dreamweaver
parameter is optional.
cursor
270

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents