I'm trying to parse a Json, it is here. When I launch the browser, after 2 seconds, there is an error:
Resource interpreted as Script but transferred with MIME type text/html:
Why? What is this error?
JS
function example()
{
alert("hello nice");
var URL = "http://sath3g.altervista.org/index.php";
$.ajax(URL, {
crossDomain: true,
dataType: "jsonP",
type: 'GET',
success: function (data, text, xhqr) {
$.each(data, function(i, item) {
alert(item);
});
},
});
}
HTML
<!DOCTYPE html>
<html>
<head>
<title>Parse Json</title>
<script src="parse.js"></script>
<script type="text/javascript" src="jquery-2.1.0.min.js"></script>
</head>
<body onload="example()">
<header id="title">
Parsami tutta
</header>
<form>
</form>
</body>
</html>