I am trying to load a 3rd party xml document using JQuery/Javascript, but without success:
alert("Before");
$.ajax({
type: "GET",
url: "www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml",
dataType: "xml",
success: function(xml) {
alert("OK");
}
});
alert("After");
The "OK" box is not displayed, but the xml is available with a browser. This code example is available at JSFiddle.
How is one supposed to load a 3rd party XML in Javascript?