T
tedqn
I have a form with checkboxes and radio buttons which, onClick, run an
XmlHttp call to retrieve sub questions for that particular box (AJAX).
The problem is if user click on several boxes too fast, it cancel
previous calls that haven't been completed. For checkboxes, I can
detect that XmlHttp process is still running for another checkbox and
prevent the call plus uncheck that box. However, for radio boxes, I
have no way of knowing what the previous selection was to restore the
previous selection while the process is still running to retrieve sub
questions for the previous selection. Ideally, I'm looking for a way to
freeze the screen while the process is running or just something that
makes the radio/checkbox click has no effect at all, ie. not checked.
Any advice appreciated.
XmlHttp call to retrieve sub questions for that particular box (AJAX).
The problem is if user click on several boxes too fast, it cancel
previous calls that haven't been completed. For checkboxes, I can
detect that XmlHttp process is still running for another checkbox and
prevent the call plus uncheck that box. However, for radio boxes, I
have no way of knowing what the previous selection was to restore the
previous selection while the process is still running to retrieve sub
questions for the previous selection. Ideally, I'm looking for a way to
freeze the screen while the process is running or just something that
makes the radio/checkbox click has no effect at all, ie. not checked.
Any advice appreciated.