View Single Post
  #1 (permalink)  
Old 10-29-2007, 08:26 AM
plits plits is offline
Newbie
 
Join Date: Nov 2006
Posts: 3
Credits: 0
Rep Power: 0
plits is on a distinguished road
Default responseXML returns null

I created my first AJAX application and everything was going great when I used responseText to retrieve my data.

I decided to switch to XML output and now I receive "Object Null" error when I alert my output. When I change it back to responseText I can see the XML output.

Can someone tell me what is wrong?

JavaScript Code:
  1. function stateChanged()
  2. {
  3.   if ((xmlRT.readyState==4)&&(xmlRT.status == 200))
  4.   {
  5.     var xmlobj=xmlRT.responseXML;
  6.     alert(xmlobj);
  7.    }
  8. }
Reply With Quote

Sponsored Links