I'm trying to get a xml document from w3school site in an HTML page using jquery.
<!DOCTYPE html>
<html>
<body>
<script src="jquery.js"></script>
<script>
$(document).ready(function() {
$.ajax({url: "http://www.w3schools.com/xml/cd_catalog.xml",
success: function(xml) {
alert("ok");
},
error: function(request, error, tipo_errore) {
alert(error+': '+ tipo_errore); }
});
});
</script>
</body>
</html>
The page give me error alert, what's wrong?