Cisco Cisco Collaboration Server Dynamic Content Adapter

Seite von 223
DCA 2.01 Administration and Configuration Guide 
About the Rule Element   115 
Script Event 
Description 
Example 
On_Match 
The script executes immediately each time 
a valid match for the rule's Accept 
statement is found. 
<SCRIPT_ON_MATCH 
language=JavaScript> 
On_Render 
If a valid match for the rule's Accept 
statement is found, the Script executes 
when the page is rendered. 
<SCRIPT_ON_RENDER 
language=JavaScript> 
A rule can contain a maximum of one script per event type.  
•  The On_Match event is called when a match is found as a document is being 
decomposed, and can be used to alter the parsing process from that point 
forward. Because a page is decomposed only once, the  On_Match event is the 
best place to call scripts used to modify matched text for all users (for example, 
to insert additional text or code on a page). 
•  The On_Render event is called when a document is being reassembled to send to 
a client. Because a page may be rendered multiple times (e.g., for different 
users), it's usually best to limit use of the On_Render event to scripts used for 
output reformatting (for example, to modify HREFs to point to the DCA). 
See Also 
For related information, see: 
About the Parsing Engine 
About the Rule Accept Element 
About Parser Scripts 
About the Parser Script Environment 
About Extending the Script Environment 
About Rule Scripts