Hey Mike.
Well, I am familiar with using the built-in ajax attribute for Vae forms. It all works fine that way, but I have never really liked that you have to set the redirect attribute to a another file for the confirmation display. On a site where you might have multiple forms, I feel like it gets a little cluttered to have a bunch of confirmation page files.
Another thing I like to do is hide or disable the submit button after it is clicked (and show a loading indicator). This gets a bit awkward to handle if there is an error from the server. e.g. Using the Vae newsletter signup tag, you get a server-side error if your email is already signed up on the list.
So I have been trying to hook into ajaxComplete and ajaxStart events to deal with the situations, and for the most part it has worked. It still gets a little buggy at times and in IE8. e.g. I have had a hard time getting my submit button show again if an error is returned.
Any ideas would be welcome. Thanks Mike.
It looks like you're new here. If you want to get involved, click one of these buttons!