Not an ideal solution, but it works:
I quickly discovered that I was not the only one who had this problem:
google search , jQuery error , stacking question
and everything that I seem to be reading indicates how IE reads and parses XML. Found smart solution reading comments here:
blog see comment # 28
. ajax alittle , dataType, № 28 , .
:
$.ajax({
type: "GET",
async: false,
url: settings.PresentationLocation,
success:function(results){
var xml = methods.parseXML(results);
$(xml).find('slide').each(function(){
obj.append('<div class="slide"><div class="slideTitle">'+ $(this).find('title').text() +'</div><div class="slideContent">'+ $(this).find('content').text() +'</div></div>');
});
totalSlides = obj.children('.slide').size();
obj.children('.slide').hide();
},
error: function(xmlReq, status, errorMsg){
var errMsg = settings.PresentationLocation + " : "+ errorMsg ;
throw(errMsg);
}
});
methods.parseXML
parseXML : function(xmlFile){
if (window.ActiveXObject) {
var doc = new ActiveXObject('Microsoft.XMLDOM');
doc.loadXML(xmlFile);
return doc;
} else if (window.DOMParser) {
return (new DOMParser).parseFromString(xmlFile, 'text/xml');
}
return "";
}