0

I have this ajax jquery call to an xml file:

$(document).ready(function(){
     $.ajax({ type: "GET",
         url: "mydata.xml",
         dataType: "xml",
         success: function(xml) {
           //myfunct
         },
         error: function(xhr,textStatus,err) {
           alert("readyState: " + xhr.readyState);
           alert("responseText: "+ xhr.responseText);
           alert("status: " + xhr.status);
           alert("text status: " + textStatus);
           alert("error: " + err);}
      });
});

mydata.xml is in the same folder of the .js and the .html file. When i open the .html with chrome the alert says:

readyState: "4"
responseText: ""
status: "404"
text status: "error"
error: ""

I need to find out why the ajax call does not succeed loading the xml file,

Thanks

user2937975
  • 1
  • 1
  • 1
  • http://stackoverflow.com/questions/11897086/how-to-enable-loading-local-file-using-ajax-in-ie9 – jantimon Oct 30 '13 at 16:35
  • Check the URL that is being requested via AJAX (e.g. in console) and try requesting it manually in a browser. It seems that the resource is not found by the server. – marekful Oct 30 '13 at 16:36

0 Answers0