aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Ajax Jqery xml response - not able to read response Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Ajax Jqery xml response - not able to read response" Watch "Ajax Jqery xml response - not able to read response" New topic
Author

Ajax Jqery xml response - not able to read response

Sujatha Kalluri
Ranch Hand

Joined: Oct 09, 2002
Posts: 33

My servlet is returning the xml response( I set the content type as text/xml) but my javascript is not able to read the response, I am using Jquery and Ajax.

My servlet code is like this


My Javascript code is



I am not able to fetch the xml elements in the javascript, for example I tried to read "Grad" element in the above example. where am I going wrong.

thanks,
Sujatha.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15286
    
    6

Try changing "XML" to "xml".


GenRocket - A Test Data Generation Platform
Sujatha Kalluri
Ranch Hand

Joined: Oct 09, 2002
Posts: 33
Gregg Bolinger wrote:Try changing "XML" to "xml".


I changed it to 'XML' then suprisingly worked in firefox browser but not in IE 7.how to fix in IE then.
anybody can help me?

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ajax Jqery xml response - not able to read response
 
Similar Threads
Javascript API for parsing xml
Can you find the bug in <div> I do NOT get sample xml data[bookrss.xml]... RSS Client/Server
Problem with xmlhttp.responseXML
AJAX - responseXML is empty
Ajax with Struts - Loading the lookup values in drop down