In our app we display a veil after any button click that goes to the server
to prevent users double-submitting.  Which they do.  Alot.  Double-submits
cause a variety of mischief for us ranging from StaleObjectExceptions in
hibernate to wicket exceptions about buttons not being enabled and others.

So we add the veil, and then (for ajax) close it thusly:

            function(jqEvent, attributes, jqXHR, errorThrown, textStatus) {
//                      console.log("done");
                        if(attributes) {
                                if(attributes.event) {
if(isVeiled(attributes.event.currentTarget)) {

The problem is that this /ajax/call/done doesn't seem to fire when the
request is REALLY done, but rather a bit BEFORE it's done.  We're getting
the same behavior, especially when an ajax event transitions from one page
to the next.  The veil unloads, and there's a pause just before the redirect
kicks in during which the user assumes the same page is being seen and their
click was they click again.  

Is there a better/later event during which i can unload the veil?  A

Sent from:

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to