On Thu, Feb 3, 2011 at 9:41 PM, Wade Preston Shearer <[email protected]> wrote: > I have a javascript script (using jQuery) that controls whether a form > submits or not. Based on certain calculations, it either returns true or > false, and if true, allows the form to submit. I made a change to the script, > adding an ajax call within the script. This has messed things up however as > it causes the script to always return true, regardless of whether it should > and regardless of if the ajax call has completed. None of my efforts to > suppress this effect have worked. Any ideas?
Can you post the code? My guess is since ajax calls are typically asynchronous you have to have the function always return false, and then have a callback on the ajax code submit the form. Alvaro _______________________________________________ UPHPU mailing list [email protected] http://uphpu.org/mailman/listinfo/uphpu IRC: #uphpu on irc.freenode.net
