[jQuery] xmlHttpRequest, responseText, responseXML

2006-09-07 Thread Arash Yalpani
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 :

Re: [jQuery] xmlHttpRequest, responseText, responseXML

2006-09-07 Thread Mike Alsup
Strangely, the xmlHttpRequest object holds the responded XML in responseText, instead of responseXML. Are you saying that responseXML is null? Are you sure? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] xmlHttpRequest, responseText, responseXML

2006-09-07 Thread Mike Alsup
This is what Firebug shows me when I do console.log(xmlHttpRequest.responseXML): Well that makes sense. responseXML should be a doc and that's what you've got. If you were to alert responseXML you'd see something like [object XMLDocument]. responseText holds the actual text returned from

Re: [jQuery] xmlHttpRequest, responseText, responseXML (fin)

2006-09-07 Thread Arash Yalpani
Well that makes sense. responseXML should be a doc and that's what you've got. If you were to alert responseXML you'd see something like [object XMLDocument]. responseText holds the actual text returned from the server. Yes, you are absolutely right. And no, JQuery has NO problems with