Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MSIE: XSL + javascript

Status
Not open for further replies.

saintmike2

Programmer
May 29, 2003
10
0
0
US
I created a XML page formatted with XSL. For some reason in order to view the page properly the security settings for MSIE must be set to low. I'm guessing it's becauswe I am using a server-side object on the client. Is there anyway to fix this? Here is a sample of the code:

<html>
<body><script type=&quot;text/javascript&quot;>

// Load XML
var xml = new ActiveXObject(&quot;MSXML2.DOMDocument&quot;);
xml.async = false;
xml.setProperty(&quot;ServerHTTPRequest&quot;, true);
xml.load(&quot;
// Load XSL
var xsl = new ActiveXObject(&quot;Microsoft.XMLDOM&quot;);
xsl.async = false;
xsl.load(&quot;Quotes.xsl&quot;);

// Transform
document.write(xml.transformNode(xsl));

onLoad=window.setTimeout(&quot;location.href='Quotes.htm'&quot;,5000);

</script>

</body>
</html>

Thanks,

Mike
 
hi,

The possible reasons for viewing the output
View the xml applied with xsl directly in IE browser, if you are able to view the output, then bug in the script only, if not, upgrade IE to IE6 or install the two msxml sdks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top