F8R wrote:
I have use jQuery to send AJAX call to PHP script using POST.
It's always execute error function callback.
I check using FireBug Firefox extention, the passed XMLHTTPRequest to
error function callback has some of this value :
readyState : 4
status : 200
responseText : {The expected response}
statusText : "OK"
Here some of my code :
$.ajax({url:'inc/
msgboard.php'.url,type:'POST',dataType:'html',data:'name=F8R',
success : function(passed) {
}
},
complete : function() {
},
error : function(err) {
alert(err ? err.responseText : 'Request GAGAL,
silakan coba lagi beberapa saat.\nContent tidak ter-Update.');
}
});
I'm using Windows XP and Apache 2.2 as test.
Can someone help me ?
The PHP header was set to text/html.
Here's an error:
url:'inc/msgboard.php'.url
^
--Klaus