BountyHunter2
Programmer
Hi,
A newbie question i'm afraid. Why does the below not work when the xml file is on a remote server, but work if i download the file and host it on my server?
ps I need to do this client-side as ChiliSoft ASP doesn't support the MS XMLDOM object.
<html>
<body><script type="text/javascript">
// Load XML
//var xml = new ActiveXObject("Microsoft.XMLDOM"
var xml = new ActiveXObject("MSXML2.DOMDocument"
xml.async = false
xml.setProperty("ServerHTTPRequest", true)
alert(1)
xml.load("alert(2)
// Load XSL
var xsl = new ActiveXObject("Microsoft.XMLDOM"
xsl.async = false
xsl.load("cdcatalog.xsl"
// Transform
document.write(xml.transformNode(xsl))</script>
</body>
</html>
A newbie question i'm afraid. Why does the below not work when the xml file is on a remote server, but work if i download the file and host it on my server?
ps I need to do this client-side as ChiliSoft ASP doesn't support the MS XMLDOM object.
<html>
<body><script type="text/javascript">
// Load XML
//var xml = new ActiveXObject("Microsoft.XMLDOM"
var xml = new ActiveXObject("MSXML2.DOMDocument"
xml.async = false
xml.setProperty("ServerHTTPRequest", true)
alert(1)
xml.load("alert(2)
// Load XSL
var xsl = new ActiveXObject("Microsoft.XMLDOM"
xsl.async = false
xsl.load("cdcatalog.xsl"
// Transform
document.write(xml.transformNode(xsl))</script>
</body>
</html>