Hey folks. Well I’ve been tearing my hair out for a week over this. And I feel like the solution is probably a simple one that I just don’t have experience with. I’m using the Mootools framework to parse through some XML that was retrieved through an AJAX call. Everything works perfectly in FF2. For some reason though, in IE6 I get an error “Object does not support this property or method.” At first I thought it was a scoping issue, but the requested XML does, indeed, get passed to my xmlParser() function. Here’s the code:
var xmlDoc = new Request({
url: 'myxml.xml',
method: 'get',
onSuccess: function(responseText, responseXML){
xmlParser(responseXML);
},
onFailure: function(){
alert('request failed')
}
});
function xmlParser(myResponseXML){
var myXML = myResponseXML.getElement('reciperoot'); //right here is where it blows up in IE6
var categories = myXML.getElement('categories').getElements('category');
var mapNode = myXML.getElement('recipes').getChildren();
var dropDownNav = "";
// there's a whole bunch more parsing here, but it doesn't matter
}