There is a rather simple html application.
Changing text field will cause a submit, follow by a redraw. Pressing button will cause a submit, too.
When changing a field and leave it by pressing a button, the browser run into a conflict. The browser starts one submit, aborts it and do the next submit. The result is unreliable.
Is there a simple solution to get one submit with button and field without switching to some AJAX approach (say GWT)?
You could cancel any other event handler when starting to submit the form. This is similar to disabling a submit after clicking it, to prevent the form being submitted twice by impatient users.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With