Groups > IBM > ibm.software.speech.multimodal > Re: form button events can't be activated in Netfront browser




form button events can't be activated in Netfront browser

form button events can't be activated in Netfront browser
Mon, 24 Jul 2006 20:37:23 +000
Hi,
I am using the multimodal toolkit to develop a simple multimodal website. 
I've included some buttons in the form, such as this following one:
<input name="price_search" id="price_search"
type="button" value="New 
Search"
onmouseover="this.focus();" onclick=
"close(this);open('price_search.mxml');"/>

Its correspondent vxml code is as following:
<vxml:field name="price_search"
xv:id="voice_price_search" type="boolean" 
modal="true">
        <vxml:prompt bargein="true">
                Do you want to start a new search?
        </vxml:prompt>
</vxml:field>

They are synced:
<xv:sync xv:input="price_search"
xv:field="#voice_price_search"/>

The code runs as I expected in Opera browser--when mouse over the "New 
Search" button, the browser prompts user "Do you want to start a new 
search?". If the user says "yes" or clicks on the button, the 
"price_search.mxml" page will be shown. But when I run it in Netfront

browser, the button doesn't work--the "mouseover" event doesn't seem
to 
work and when the button is clicked, only the prompt "Do you want to start

a new search?" is read, but the new page is not loaded. Since I am going 
to show the web pages in a pocket PC, I need to use Netfront browser. Can 
anybody help me to solve this problem?

Thanks!

Liwei
Post Reply
Re: form button events can't be activated in Netfront browser
Tue, 25 Jul 2006 09:13:02 -040
Post Reply
Re: form button events can't be activated in Netfront browser
Tue, 25 Jul 2006 10:06:51 -040
daili@us.ibm.com wrote:
> 
> Okay, I got your point. I didn't think about the specific feature of PDA 
> interface :)
> 
> But I am still curious why even the onclick event cannot be activated in 
> netfront browser?
> 
> Thanks!
> 
> Liwei
So, is it just that the open() call is failing in NetFront? I've used 
window.location = "foo.mxml" with NetFront. Maybe you can give that a
try.

Thanks,
Post Reply
Re: form button events can't be activated in Netfront browser
Tue, 25 Jul 2006 13:45:14 +000
Okay, I got your point. I didn't think about the specific feature of PDA 
interface :)

But I am still curious why even the onclick event cannot be activated in 
netfront browser?

Thanks!

Liwei
Post Reply
Re: form button events can't be activated in Netfront browser
Tue, 25 Jul 2006 14:27:42 +000
Thanks, Marc! It works!

Liwei
Post Reply
about | contact