Posted by Colin McKinnon on 02/05/06 23:42
a wrote:
>
> Is there a way to handle this so the work in progress is either allowed to
> end or instructed to stop, before moving on to processing the new submit?
>
I think you've misunderstood the meaning of 'reentrant'.
Interfering with the existing process is not trivial. Wouldn't it be simpler
to not allow the user to POST more than once - something like:
<input type='button' id='submitId' onclick='
if (document.getElementById("formId").onsubmit()) {
document.getElementById("submitId").disabled=true;
document.getElementById("formId").submit();
}' value='Submit'>
C.
[Back to original message]
|