Win a copy of Event Streams in Action this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Ajax Jqery xml response - not able to read response

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try changing "XML" to "xml".
 
Sujatha Kalluri
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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?

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!