I'm re-writing a test page for a RESTful web service with AJAX, and
need to be able to display the XML or JSON response in a textarea or a
div. I'm re-writing the web page to work off jQuery, but I'm stuck
here.

The best response I can get is: [Object XMLDocument]

I have to set a custom Authorization header, set an HTTP method (get,
put, post, or delete), send data, and display the raw XML (or JSON,
depending on the request) response in the page.

With firebug I see the XML response is there, but I can't figure out
how to display that raw XML with jQuery. It worked with the prototype
js, but I'm stumped trying to get it to work with jQuery.

It seems like a simple enough task, the XML is there, I want to print
it out on the page. I've spent hours searching through the jQuery docs
and online examples to no avail.

Any ideas?

Reply via email to