Adobe Extending Dreamweaver CS4 Manuel d'utilisateur Page 280

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 387
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 279
274
EXTENDING DREAMWEAVER CS4
Server behaviors
The search patterns must identify the participant and extract several parameters. However, if a parameter such as
cursorType is not found, you should still recognize this pattern as a recordset. The cursor parameter is optional. 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.
<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 tag, it must contain
specific patterns to find and replace each 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
Type
Block tag.
Required
No.
<updatePattern>
Description
This tag is a specific type of regular expression that lets you update participant text precisely. There should be at least
one update pattern definition for every unique parameter that is declared in the insertion text (of the form
@@paramName@@).
Parent
updatePatterns
Type
Block tag.
Required
Yes (at least one, if you declare the updatePatterns tag).
Vue de la page 279
1 2 ... 275 276 277 278 279 280 281 282 283 284 285 ... 386 387

Commentaires sur ces manuels

Pas de commentaire