D
dondraper
I have an application that uses a popular but simple set of JavaScript
routines that implement an AJAX call used to populate a drop-down. It
works for thousands of user but I have one customer where it does not
work. It was working but quit over the weekend. I suspect their XML DOM
was either changed, removed or disabled somehow. My assumptions are
that the XMLHTTPRequest object used by the browser to make the http
request is different from the object that is used to parse the XML once
it is returned to the client (XML DOM?).
My question is how can they reinstall the XML DOM and are my
assumptions correct. They are on IE 5.5 and 6.0 under XP SP2. Here is
why I suspect the XML DOM...
After debugging, we verified the XMLHTTP object is working and getting
back our simple XML (verified by displaying the XML from the
http.responseText in an alert window).
var xmlDocument = http.responseXML; <--- pretty sure this works
However, when we parse the incoming XML, the nodelist in their browser
returns 0 elements.
var nodelist = xmlDocument.getElementsByTagName('user'); <---
nodelist is empty??
alert(nodelist.length) <--- this is returning 0 and our list box is
empty after completion.
Any idea why the XMLHTTPRequest can make the http call and get back the
XML but the as we parse it fails. We are sure the <user> tags are in
the XML and this is verified even this client when we displayed the XML
as text using responseText to view it.
Does this line....
var xmlDocument = http.responseXML;
....create an XML DOM object and if yes, it is using a different object
that the XMLHTTPRequest object. Is there anyway my customer can
reinstall something to get this functionality working again? How to
check version? Any advise would be appreciated.
TIA
routines that implement an AJAX call used to populate a drop-down. It
works for thousands of user but I have one customer where it does not
work. It was working but quit over the weekend. I suspect their XML DOM
was either changed, removed or disabled somehow. My assumptions are
that the XMLHTTPRequest object used by the browser to make the http
request is different from the object that is used to parse the XML once
it is returned to the client (XML DOM?).
My question is how can they reinstall the XML DOM and are my
assumptions correct. They are on IE 5.5 and 6.0 under XP SP2. Here is
why I suspect the XML DOM...
After debugging, we verified the XMLHTTP object is working and getting
back our simple XML (verified by displaying the XML from the
http.responseText in an alert window).
var xmlDocument = http.responseXML; <--- pretty sure this works
However, when we parse the incoming XML, the nodelist in their browser
returns 0 elements.
var nodelist = xmlDocument.getElementsByTagName('user'); <---
nodelist is empty??
alert(nodelist.length) <--- this is returning 0 and our list box is
empty after completion.
Any idea why the XMLHTTPRequest can make the http call and get back the
XML but the as we parse it fails. We are sure the <user> tags are in
the XML and this is verified even this client when we displayed the XML
as text using responseText to view it.
Does this line....
var xmlDocument = http.responseXML;
....create an XML DOM object and if yes, it is using a different object
that the XMLHTTPRequest object. Is there anyway my customer can
reinstall something to get this functionality working again? How to
check version? Any advise would be appreciated.
TIA