I am loading some XML:
new Ajax.Request(this.options.url, {
method: 'post',
parameters: '&r=hl&f=' + $F(this.textbox),
onSuccess:function(transport)
{
thisObject.data = transport.responseXML;
alert(thisObject.data.getElementsByTagName
('Locations')[0].childNodes.length);
}
});
In Firefox I am getting a good result on the alert, in IE it returns
zero.
When I am loading the responseText from transport into Xmldoc it
retruns a good result:
// testing result for IE
xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.loadXML(transport.responseText);
alert(xmlDoc.getElementsByTagName('Locations')[0].childNodes.length);
Any suggestions?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---