Catches events thrown by the VoiceXML application or the VoiceGenie platform. The <catch> element associates a catch with a document, dialog (i.e form or menu), or form item. It contains executable content.
The <catch> element catches an event with a name:
event attribute, ORevent attribute is a prefix match. Being a prefix match means that the event attribute is a token prefix of the thrown event, where the dot is the token separator. For example, <catch event="telephone.disconnect"> is a prefix match for the event telephone.disconnect.transfer.
|
|
Attribute |
Description |
|
event |
The event or events to catch. A space-separated list of events may be specified to catch multiple events. The empty string or single dot matches everything. Optional. (Defaults to all events.) |
|
count |
The count attribute allows you to handle different occurrences of the same event differently. Each form, menu, and form item maintains a counter for each event that occurs while it is being visited; these counters are reset each time the menu or form item's form is re-entered. When there are more than one |
|
cond |
An ECMAScript expression to be evaluated and used as a boolean condition. This |
Two anonymous variables are available within the scope of any <catch> element:
<throw>, <choice>, <link>, or <return> element, or a platform defined value for events thrown by the platform. If no message is specified, the value of this variable is ECMAScript undefined.Field Form Initial Menu Object Record Subdialog Transfer Vxml
Assign Audio Clear Data Disconnect Enumerate Exit ForEach Goto If Log Prompt Reprompt Return Script Submit Throw Value Var #PCDATA
None
None
|