PDA

View Full Version : load external xml into widget




redeye be
May 16, 2005, 02:48 PM
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:
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



redeye be
May 17, 2005, 02:40 PM
solved
my bad
see info.plist