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