is it not necessary to call the json_encode function in the php page, with an Ajax method?
for example, i found this code :
$.post('updatecoords.php', 'data='+$.toJSON(order), function(response){
if(response=="success")
and at the end of the php page :
echo "success";
?>
So here is "echo", instead of json_encode ($array). It's one or another? or is there any rule? Thanks for the answer! ;)
$.toJSONmethod, are you using a plugin?