The first step to solve the IE coding problem: DataType: ($.browser.msie)? "Text": "xml" first lets IE recognize whether the text or XML is returned
The first step to solve the IE coding problem: DataType: ($.browser.msie)? "Text": "xml" first lets IE recognize whether the text or XML is returned
Step Two: function Parsexml (XML) {//xml IE coding problem Step two
if (JQuery.browser.msie) {//Determine whether the browser is IE
var xmldoc = new ActiveXObject ("Microsoft.XMLDOM"); The Xmldom object under Microsoft
Xmldoc.loadxml (XML);
XML = xmldoc;
}
return XML;
}
Step Three: function GetText (XML)
{var newxml=parsexml (XML);
var sp=$ ("#special");
var manage=$ ("#manageContent");
var common=$ ("#common");
。。。。。 Slightly
}
It has been applied in the project being done, so it is advocated.
Why will appear in IE invalid, from the above solution can know is the XML file encoding problem, in the conversion will be readable when the foreground does not conform to IE's XML object, it needs to be translated into IE compatible objects.