I keep getting this error
1Resource interpreted as Script but transferred with MIME type application/json.
I am trying to use jquery query to grab my json form a php file on a separate domain here is my php code.
json.php
<?php
header('Content-type: application/json');
$arr = array('a' => 1, 'b' => 2, 'c' => 3, 'd' => 4, 'e' => 5);
echo json_encode($arr);
?>
and here is my jquery
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
var surl = "http://dropp.users35.interdns.co.uk/json.php";
$.getJSON(surl, function(rtndata) {
console.log(rtndata);
});
});
</script>
ok if i change my url to
http://dropp.users35.interdns.co.uk/json.php?callback=?
i then get this error?????
1Resource interpreted as Script but transferred with MIME type application/json.