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,
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',
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 } );
3 matches
Mail list logo