I have java script code to load my XML data into browser document (window). The IE code update the browser document very quick but in firefox code update the browser document very slow.
/////////////////Code///////////
//Xmldoc - XML data file
//XslDoc - xsl file to parse the XML file and form html content
id = “webpage”;
if (window.ActiveXObject) // code for IE
{
ex=XmlDoc.transformNode(XslDoc);
document.getElementById(Id).innerHTML=ex;
}
else if (document.implementation && document.implementation.createDocument) // code for Firefox
{
xsltProcessor=new XSLTProcessor();
xsltProcessor.importStylesheet(XslDoc);
resultDocument=xsltProcessor.transformToFragment(XmlDoc,document);
var element=document.getElementById(Id);
if(element){
document.getElementById(Id).innerHTML="";
document.getElementById(Id).appendChild(resultDocument);
}
}
////////////////////////
Please suggest me how to speed up in firefox.
[SIZE=1][/SIZE]