so this is ok:
$.ajax({
type: "GET",
url: "myfile.xml",
dataType: "xml",
success: function(xml) {
alert("success");
}
});
As you see, the xml file i'ts next to my script file
but when I take the xml file to a server,, it doesn't work:
$.ajax({
type: "GET",
url: "http://somehosting/myfile.xml",
dataType: "xml",
success: function(xml) {
alert("success");
}
});
I guess I am missing something... but no idea what is it?
thanks in advance.

New Topic/Question
Reply



MultiQuote




|