• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Loading XML and ActiveXObjects

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have a quick one here, I'm using the ActiveXObject in javascript to load
an xml file that does not exist on my server, but it exists on another server.
The problem is I get an IE error saying Access Denied at the xml.load line
If I put the file on my local machine on the C drive of my personal computer it works fine.

var xml = new ActiveXObject("Microsoft.XMLDOM");
xml.async = false;
xml.load("http://www.engadget.com/rss.xml");

Is it not possible to load a file on my server from a remote server??
Is it not possible using the ActiveXObject in javascript???

thanks!!
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JavaScript has a Samin Domain policy, so you can only get information from your own domain. You need to use a serverside proxy to get the information.

Eric
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic