codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Using XML from another site  fewchurpro at 05:16 on Monday, April 12, 2004
 

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.








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  How to use two sorting methods for a product list?
•  www.Echeapjackets4moncler.com
•  What is the important of PHP include file?
•  What is JAVA socket?
•  What is the important of AJAX tools?
•  What is ASP.net life cycle?
•  Documentation Script (fixed)
•  Documentation Script
•  Documentation Script


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2012