The plugin will submit the form after the async request finishes. The remaining problem is that any submit-button won't be submitted. Maybe thats the problem you had?
Jörn On Mon, Dec 21, 2009 at 8:15 AM, KenGreer <k...@dancesoft.com> wrote: > With the validation plugin (http://bassistance.de/jquery-plugins/ > jquery-plugin-validation/<http://bassistance.de/jquery-plugins/%0Ajquery-plugin-validation/>) > I included two "remote" rules to check > username and e-mail. If my form is loaded such that the username and e- > mail are already filled in, and, therefore, have not yet been > validated, and I click SUBMIT, validation proceeds just fine, but the > form does NOT submit! A second click of the submit button, however, > then works. > > I speculated that this was because of pending ajax calls aborting the > submit. It seems my speculation held true. Right after my "$ > (document).ready(function() { ..." I added the code: > > $.ajaxSetup( { > async: false > } ); > > to make the "remote" ajax calls synchronous and this fixed the > problem. Now clicking submit performs the validation and really does > submit. > > Hopefully a more elegant solution will be found in the validation > plugin itself, but as a jquery newbie, I found reading the validation > plugin code daunting! >