Q:

How to deny HTML form submission if previous submission is still in action?

So I have this form which executes a pretty long data posting using AJAX, now I am a bit paranoid that some smart bloke might open firebug and re-trigger posting process, while previous is still in action. How do I avoid this?
Thanks!

A:

You can: 

Disable submit buttons.
Prevent Enter key presses.
Remove action attribute from form tag.
Redirect to another page upon first submission and expire the page with form on it.

With that said, there's only so much you can do on the front-end to prevent resubmissions - there's always a way around.  If you are so concerned about this, then server-side validation is also necessary (and usually recommended anyway).

