Yes, I would submit the form in the onSuccess callback from your ajax-
request. That way you can even decide not to do the submit at all if
your request fails (which might be important enough not to go to post
paypal). So, stop the default event with event.stop()
or .preventDefault(), then do your request and onSuccess do the
form.submit to paypal.

On Sep 3, 9:15 am, Sanford Whiteman <[email protected]>
wrote:
> > I need to setup an ajax-request before default form submition.. it's
> > possible?
>
> Either  the  Request  has  to  be  set  to synchronous, or you have to
> manually  call  submit() in the callback. An async Request cannot beat
> out the default action.
>
> -- Sandy

Reply via email to