Hi everyone!
First of all, this is not the issue with hidden iframe not assigned to
a form.
I have two similar forms in my GWT app. Both of them cancel the submit
in onSubmit handler but one of them works (meaning the form isn't
sent) but the other one doesn't. I think it a browser error because I
tried to step through the code after GWT compiler produces the
resulting JS code and I modified hookEvents to show me the result
passed to form.onsubmit like this:
form.onsubmit = $entry(function(){
iframe && (iframe.__formAction = form.action);
var __res = listener.onFormSubmit();
alert(__res);
return __res;
}
__res indeed is false but the form is sent regardless of it.
It looks like its a problem in Firefox (3.6), Chrome works just fine.
I fixed this by assigning dummy action that loads empty file.
Did anyone came ocross this problem as well? Do you have any other
suggestions?
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" 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/google-web-toolkit?hl=en.