Cross-Browser Incompatibility?

admin

Administrator
Staff member
Hi,

My code doesn't seem to work with anything other than IE, can someone point me in the right direction as to how to fix this or let me know what the compatibility problem is, etc? This is the code in my html file: Thanks! -amarice


<html>
<head>

<script>
var doc, xsldoc;


function window_onload()
{

doc = new ActiveXObject("msxml2.domdocument");

doc.async = false; doc.load("faqs.xml");

xsldoc = new ActiveXObject("msxml2.domdocument");

xsldoc.setProperty("SelectionLanguage", "XPath");
xsldoc.setProperty("SelectionNamespaces", "xmlns:xsl='http://www.w3.org/1999/XSL/Transform'");

xsldoc.async = false;
xsldoc.load("faqs.xsl");


tableBody.innerHTML = doc.transformNode(xsldoc);

}

</script>
</head>


<body onload="return window_onload()">
<div id="tableBody">
</div></body></html>
 
Back
Top