[jQuery] Problem with chronological order : jQuery code runs too late

2010-02-11 Thread Julien
Hi, I'm trying to set the values of hidden HTML inputs storing product options for Paypal checkout. These values are retrieved by a POST ajax request. The values are correctly retrieved but don't seem to update the form. The jQuery code seems to run concurrently with the other Javascript tasks

Re: [jQuery] Problem with chronological order : jQuery code runs too late

2010-02-11 Thread Leonardo K
Ajax is asynchronous. The alert in the ajax post will only be executed when the ajax request is completed. This can happen after the other part of your code run. You can use the async option and set to false; http://api.jquery.com/jQuery.ajax/ On Thu, Feb 11, 2010 at 10:35, Julien