Re: [jQuery] How do I get the XML of an ajax request?

2007-02-18 Thread Blair Mitchelmore
Looks like your request worked and you got XML back. You can try inspecting the XML response to see what was return to extract the data manually or if you could also try wrapping the XML document in a jQuery Object and calling the .html() method to get the value of your xml response without

Re: [jQuery] How do I get the XML of an ajax request?

2007-02-14 Thread Klaus Hartl
Stephen Woodbridge schrieb: Jake, Thanks for the help. I changed my code to look like this and got things to work. $('#rgeo').bind('submit', function(){ var xml = $.ajax({ url: /rgeo/, dataType: xml, async:

Re: [jQuery] How do I get the XML of an ajax request?

2007-02-14 Thread Mike Alsup
You don't need to set the dataType to xml if you don't want XML. This should work: $.ajax({ url: /rgeo/, dataType: text, data: { x: document.rgeo.x.value, y: document.rgeo.y.value }, success: function(data) { $(#response).val(data); } });

[jQuery] How do I get the XML of an ajax request?

2007-02-13 Thread Stephen Woodbridge
Hi all, How do I get the XML response of an ajax request? I want to put the XML text into a textarea and can do find this documented. $.get(/rgeo/, { x: document.rgeo.x.value, y: document.rgeo.y.value }, function(data){

Re: [jQuery] How do I get the XML of an ajax request?

2007-02-13 Thread Ⓙⓐⓚⓔ
you're close... you don't get simple text from an xml request. you get a big ol' request object. if you just want the text from the html you can see it in a 'complete' call back with data.responseText inside success, you get back the responseXML part of the request. it's an xmlDocument that

Re: [jQuery] How do I get the XML of an ajax request?

2007-02-13 Thread Stephen Woodbridge
Jake, Thanks for the help. I changed my code to look like this and got things to work. $('#rgeo').bind('submit', function(){ var xml = $.ajax({ url: /rgeo/, dataType: xml, async: false, data: {

Re: [jQuery] How do I get the XML of an ajax request?

2007-02-13 Thread Ⓙⓐⓚⓔ
yeah I see how that works... but it's not best to use async:false, unless you really want it sync. with the 'complete' callback you get a parm that has the whole req. and can get the responseText from it. also... your var is not xml it's text, and the dataType should not be set to xml for