mam taką funkcje która czyta xmla do innej funkcji i go pozniej parsuje.
<?php function init() { var xml = null; if (window.XMLHttpRequest) xml = new XMLHttpRequest(); else if (window.ActiveXObject) xml = new ActiveXObject("Microsoft.XMLHTTP"); if (xml) { xml.onreadystatechange = function() { if (xml.readyState==4) { var root = xml.responseXML.documentElement; countInstance(root); } } xml.open("GET", "/xml/dane.xml", true); xml.send(null); } } ?>
wszystko dziala ok, tylko jak chcem wywolac xml'a ze zdalnego serwera to wywala:
uncaught exception: Nie udzielono uprawnieD do wywoBania metody XMLHttpRequest.open
jak to ominąć?
