var xmldoc = new ActiveXObject("Msxml2.DOMDocument");
xmldoc.async = false; //get xmldata, if the result is null, then redirect to home page
var xmlStr = '<%= (String)request.getSession().getAttribute("ACTIVATIONS")%>';
if ( xmlStr != "null" ) {
xmldoc.loadXML(xmlStr);
}
else {
navigate("/showActivationsAction.do");
return;
}
var bindDoc = document.createElement("<xml id='xmlDS'></xml>");
document.body.insertBefore(bindDoc);
//alert(xmldoc.documentElement.xml);
bindDoc.appendChild(xmldoc.documentElement);
rootElement = bindDoc.documentElement;请问,以上这段代码,应该如何改动,才可能使它可以在firefox浏览器中跑起来?
xmldoc.async = false; //get xmldata, if the result is null, then redirect to home page
var xmlStr = '<%= (String)request.getSession().getAttribute("ACTIVATIONS")%>';
if ( xmlStr != "null" ) {
xmldoc.loadXML(xmlStr);
}
else {
navigate("/showActivationsAction.do");
return;
}
var bindDoc = document.createElement("<xml id='xmlDS'></xml>");
document.body.insertBefore(bindDoc);
//alert(xmldoc.documentElement.xml);
bindDoc.appendChild(xmldoc.documentElement);
rootElement = bindDoc.documentElement;请问,以上这段代码,应该如何改动,才可能使它可以在firefox浏览器中跑起来?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货