[jQuery] access denied in local xml file IE

[jQuery] access denied in local xml file IE


I'm trying to make a simple call to a local file (html, js and xml all
local).
In ff no problems, in ie it does work only served by a web server (but i
need to use it as a standalone file).
i tried
---------------------
$.ajax({
type: "GET",
url: "ANAGRAFICA_small.xml",
dataType: "xml",
success: function(xml) {
$(xml).find('A').each(function(){
var id = $(this).find('ID').text();
});
}
-----------------------
And i have acces denied on the xhr.open(type, s.url, s.async);
call into the jquery js file.
So i googled a bit and modified into this:
-----------------------
$.ajax({
url: "ANAGRAFICA_small.xml",
dataType: ($.browser.msie) ? "text" : "xml",
success: function(data) {
var xml;
if (typeof data == "string") {
xml = new ActiveXObject("Microsoft.XMLDOM");
xml.async = false;
xml.loadXML(data);
} else {
xml = data;
}
$(xml).find('A').each(function(){
var id = $(this).find('ID').text();
});
}
-----------------------
but i have the same result...
how can i use jquery to parse local xml files without a web server?
--
View this message in context: http://www.nabble.com/access-denied-in-local-xml-file-IE-tp23908145s27240p23908145.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.