How to get a form processing event
<p>My code is as simple as like this</p>

<pre><code>$(document).ready(function(){
   $('#somebutton').click(function(){
           $('#someformid').submit();
           return false;
    });

});
</code></pre>

<p>During this form submit ,normally the page will wait for 1 or 2 sec for the load ,in this mean time user can click the 'somebutton' again and the form will submit again.My question is how do i lock the browser or disable form submit if a form submit process is going on ?</p>

<p>P.S somebutton is an image</p>
