I need to read xml data using jquery in AJAX function, which is working fine in firefox... however i am stuck with IE browser... I am not able to read xml. program is required t
function parseXML(xml) {
if (jQuery.browser.msie) {
alert("dd3");
var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.loadXML(xml);
xml = xmlDoc;
}
alert("dd4");
return xml;
}
function searchThis() {
alert("dd1");
$.ajax({
type: "GET",
url: XMLSource,
dataType: ($.browser.msie) ? "text" : "xml",
success: function (xml) {
alert("dd2");
var newXML = parseXML(xml);
loadPublication(newXML)
}
});
}
enjoy with this working for IE.