Invalid procedure call or argument when http:// is used
Hello friends,
i have the following javascript
<script>
function ll()
{
strxml="Person.xml";
strxsl="Pers.xsl";
var source=new ActiveXObject("MICROSOFT.FreeThreadedXMLDOM");
source.load(strxml);
var style = new ActiveXObject("MICROSOFT.FreeThreadedXMLDOM");
style.load(strxsl);
document.getElementById("xsl").innerHTML=source.transformNode(style.documentElement);
//alert(source.transformNode(style.documentElement));
}
</script>
the script works fine when i am accesing the html directly from my computer. but when i access it through a local server i am getting the "Invalid procedure call or argument" error.
Can you help.thanks in advance.