|
Ive been playing around with XML and I'll be honest, I'm not close to an expert. What im trying to do is use the XML data from another website that live updates information and put in a table on an html page. IF, I copy the XML information from the site and put the copy on my site and use the following JS for it:
<script language="javascript">
// Load XML
var xml = new ActiveXObject("Microsoft.XMLDOM")
xml.async = false
xml.load("http://guilds.camelotherald.com/guilds/Palomides/1696.xml")
// Load the XSL
var xsl = new ActiveXObject("Microsoft.XMLDOM")
xsl.async = false
xsl.load("/forum/16962.xls")
// Transform
document.write(xml.transformNode(xsl))
</script>
This works, with the local XML file for me. However, if I do it like this:
<script language="javascript">
// Load XML
var xml = new ActiveXObject("Microsoft.XMLDOM")
xml.async = false
xml.load("http://guilds.camelotherald.com/guilds/Palomides/1696.xml")
// Load the XSL
var xsl = new ActiveXObject("Microsoft.XMLDOM")
xsl.async = false
xsl.load("/forum/16962.xls")
// Transform
document.write(xml.transformNode(xsl))
</script>
adding the http://url to the xml file in the xml.load it does absolutely nothing.
What if anything do I need to change to load from another websites xml page?
Kudo's to the Author of the script, has been super useful to me.
|
|
|
|
|
|
|
|