Topic: Wait XML answer with "GO" button

First thanks for this awsome framework, it makes things so much easier.

I've made a login form and it's working great when i submit it with my own button. But when i tried to submit the form with the "GO" button of the virtual keyboard of the iPhone, i'm redirected to the action page.

I just want to wait, the XML answer and don't load the action page. I saw some apps made with your framework and the "go" button was working.

If you could help me it will be great!

Re: Wait XML answer with "GO" button

Hi and welcome to this forum,

The keyboard button does nothing more than posting the current form.
If you want your form to be asynchronous, you must use:

WA.Submit(myForm);

functions list

/!\ Don't forget to "Like" WebApp.Net from the homepage.

Re: Wait XML answer with "GO" button

Thanks a lot dude!

I had the wa.submit but i had some quote around my form name and it was not working

<form id="connexion" action="php/login.php" onsubmit="return WA.Submit("connexion")">

and i just remove the quote!

Re: Wait XML answer with "GO" button

You can use single quote in JS

/!\ Don't forget to "Like" WebApp.Net from the homepage.