I am attempting to add in a javascript "please wait" spinner, so my end user has an idea that something is happening while a long loading event occurs. We are using ASP.NET. There is a problem, however, in that we are using a lot of Peter Blum's validators on the page. As it stands right now, I am using a click event on the continue button like so:
var btnContinue = $("input[name*='btnContinue']");
$(btnContinue).click(function()
{
# show the spinner
}
This causes a problem if the validation fails, because the validation errors will pop up but the spinner will not go away. I don't really see a single OnAllValidation() event or something that I can hook into easily to get the behavior I'm really wanting (start spinning after validation when we know everything's okay). This order of events is problematic because some of the validation happens after the post back, which means I lose the ability to check these conditions in Javascript. At least, without an event I could hook into.
Anyone have any ideas?