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

2010-02-11 Thread Julien
Thanks, Leonardo. This seems being the right answer. However, I fail at replacing the $.post() request by the more general $.ajax(). Can you see any error in the manner I'm doing the ajax request ? (The corresponding $.post() code in my first message works fine.) $.ajax( async: false,

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

2010-02-11 Thread Julien
Solved. I dont' know exactly what was wrong, although it was most probably in the callback function. Maybe the carriage returns. But this works fine: $.ajax({ async: false, url: cart_doc, type: 'POST', data: {action: 'retrieve_opt', name: fieldName}, dataType: 'text',

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

2010-02-11 Thread Julien
Solved. I dont' know exactly what was wrong (...) Oh, I found : the parameters to $.ajax() have to been included into json-like brackets ! $.ajax( { parameters } );