This is topic creating alert window from vxml form in forum Multimodal at VoiceXML Forum Community Message Board.
To visit this topic, use this URL:
http://www.voicexml.org/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic;f=7;t=000016
Posted by abc (Member # 3455) on April 11, 2006, 08:34 AM:
Hi,
I am trying to open an alert window at the noinput/nomatch event of a vxml form that is called from a button click event in the xhtml.
1. but the problem is that the alert window is opening BEFORE the voice prompt of nomatch/noinput event whereas I want to open it AFTER that
2. How can I open alert windows for a specific occurance of nomatch/noinput events? (2nd/3rd nomatch events etc)
3. Is there a better way to do this?
this is what I am doing ->
javascript in the 'head' -
script language="JavaScript" type="text/javascript" id="vxml_nomatch_handler" declare="declare"
alert("my alert")
/script
vxml form -
vxml:form id="myForm">
vxml:field name="myField"
.....
vxml:catch event="help nomatch noinput"
my voice message
/vxml:catch
.....
/vxml:field
/vxml:form
xhtml 'body' -
button type="button" id="myButton" value="button" name="myButton" ev:event="click" ev:handler="#myForm"
listener -
ev:listener ev:observer="myButton" ev:event="vxmlnomatch" ev:handler="#vxml_nomatch_handler"/
UBB.classicTM
6.3.1.2