Can't able to figure out, why this jquery function always returns an error instead of success.
So I hope to get some feedback ;-)
Thanks in advance!
Bas
$.ajax({
type : 'POST',
dataType: 'json',
url : '/ajax_push_order_status_request.php',
data: dataString,
success:function (data) {
$('.success').fadeIn(1000);
$(".success").append(data);
},
error: function (data) {
alert( "ERROR: " + data );
$('.error1').fadeIn(1000);
}
});
My PHP script returns:
{"result":true}