MACROMEDIA DREAMWEAVER 8-EXTENDING DREAMWEAVER Manual page 358

Extending dreamweaver
Table of Contents

Advertisement

Values
,
true
false
The value is
true
The value is
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
recordset. The
cursor
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.
<updatePatterns>
Description
This optional advanced feature lets you update the participant precisely. Without this tag, the
participant is updated automatically by replacing the entire participant text each time. If you
specify an
<updatePatterns>
parameter within the participant.
This tag is beneficial if the user edits the participant text. It performs precise updates only to
the parts of the text that need changing.
Parent
implementation
358
Server Behaviors
if the
searchPattern
(default) if the
searchPattern
is not found, you should still recognize this pattern as a
cursorType
parameter is optional. In the EDML, the search patterns might look
tag, it must contain specific patterns to find and replace each
is not necessary to identify the participant.
tag is required.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DREAMWEAVER 8-EXTENDING DREAMWEAVER and is the answer not in the manual?

This manual is also suitable for:

Dreamweaver 8

Table of Contents