I've recently switched to using the latest mercurial version so I can
can start playing with the new events, however I've come across a bug.
As it's not against a released version I haven't raised a bug in the
tracker but can if I should.
If you submit a form by clicking on the submit button then the form is
submitted using ajax and the next page is displayed correctly. However
if you submit the form by pressing the GO button on the on screen
keyboard it loads it in a new page.
I've found the code that is a problem... in iui.js you currently have
on line 441...
form.onsubmit = function(event)
{
// submitForm and preventDefault seem to be called in the click
handler
// so we don't need to call them again here
//
// event.preventDefault();
// submitForm(form);
};
This comment is incorrect and the code should be called. Commenting
out the 2 lines at the bottom results in the form being submitted
using AJAX.
Mike
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"iPhoneWebDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---