PDA

View Full Version : XHTML + Voice - calling a JavaScript Function - SOLVED


imparator
10-13-2005, 01:36 AM
I have a XHTML + Voice form (below)


<form xmlns="http://www.w3.org/2001/vxml" id="sayHello">
<field name="browser">
<prompt>Please say the word "Randomise" to begin the game</prompt>
<option value="opera">Randomise</option>
<nomatch>Try again.</nomatch>
<filled>Thankyou, randomisation has begun.</filled>
</field>
</form>


and an event handler for the form:

ev:event="load" ev:handler="#sayHello"

I also have a JavaScript function called regen2() which i want to be executed after the form has been filled and "Thankyou, randomisation has begun." has been said

can anyone tell me how i can go about doing this?

Thankyou in advance.

Alex Vincent
10-13-2005, 04:24 PM
Hm, which application are you running this in? I'm not aware of any web browser supporting XHTML + Voice at this time. (But I could very well be wrong!)

imparator
10-14-2005, 06:29 AM
I'm running this in Opera (it is the only browser that currently support it), Anyway i fixed the problm but thanks anyway..

Alex Vincent
10-14-2005, 10:04 AM
Cool... care to tell us what you were doing wrong, and how you fixed it? :thumbsup: Info like that is always useful.