Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

redeye be

macrumors 65816
Original poster
Jan 27, 2005
1,138
0
BXL
Hello people,

I've started work on a folding widget. It would get an xml file provided by Extreme Overclocking and write the data into a widget.

I got it working (kinda).

My first problem is that i can't seem to load the xml file in to the widget (using javascript).
I tried XMLHttpRequest and this piece of code:
Code:
if (document.implementation && document.implementation.createDocument){
var xmldoc = document.implementation.createDocument("","",null);
xmldoc.onload = function() { handler(xmldoc);}
xmldoc.load(url);}
they both seem to give a security error when trying to load the xml file. Computers apparently don't like third party xml files being loaded :(.
When i download the xml file to a local folder, it works.

Anybody an idea how to sort this out, or some nice pointers in that direction?

Cheers
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.