Hi, I am in the process of migration my own Ajax lib to JQuery's.
This how I call my server:
$.ajax({
url: config.API_URL,
type: 'POST',
data: $.param(data),
complete: XmlHelper.ajaxDone,
success: XmlHelper.ajaxSuccess,
error: (onerror ? onerror : XmlHelper.ajaxError)
});
This is ajaxSuccess:
XmlHelper.ajaxSuccess = function(xmlHttpRequest) {
console.log(xmlHttpRequest);
}
Strangely, the xmlHttpRequest object holds the responded XML in
responseText, instead of responseXML.
This is the returned Header:
Date: Thu, 07 Sep 2006 18:33:33 GMT
Server: Apache/2.2.2 (Unix) DAV/2 mod_ssl/2.2.2 OpenSSL/0.9.8b PHP/5.1.4
mod_apreq2-20051231/2.5.7 mod_perl/2.0.2 Perl/v5.8.7
X-Powered-By: PHP/5.1.4
Set-Cookie: wrsess=3824b35dce1699a545c4ad639b35426a; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Vary: User-Agent,Accept-Encoding
Content-Encoding: gzip
Content-Length: 322
Connection: close
Content-Type: text/xml; charset=UTF-8
So the returned Content-Type is valid (text/xml) too. Opening the
requested URL mechanically
http://newsride/api/rest.php?p=account&m=get_info&accountId=101
shows the returned XML formatted too. What exactly am I doing wrong?
Thank you,
Arash
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/