|
Posted by a on 02/06/06 04:19
Thanks for your reply.
> I think you've misunderstood the meaning of 'reentrant'.
>
By "reentrant" I meant that the user would POST while a previous POST is
still being processed on the server.
> 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'>
>
Yes, this would prevent the user from resubmitting a form, but there is also
the issue of allowing the user to cancel a lengthy processing, in which case
a new post would still have to be sent.
I'm leaning now more toward an asynchronous solution in which the windows
process that is exec-ed by the php script starts another process to do the
actual work and then returns immediately, allowing the php script to
continue. There will have to be a synchronization mechanism between the
working process and the php script that will signal when the data is ready,
or will allow the processing to be canceled.
A
Navigation:
[Reply to this message]
|