I am trying to get a file through jquery from cross domain the code is
$.getJSON('http://tzook.info/bot/t.htm?callback=?', function(jsonp) {
alert('loaded');
});
But the error on console is
Resource interpreted as Script but transferred with MIME type text/html: "http://tzook.info/bot/t.htm?callback=jsonp1353261653582". jquery-1.4.2.js:5093
Uncaught SyntaxError: Unexpected token <
Why is this error.
Whatever you are trying to do is not possible if you are making a cross domain call because of security reasons.
Only JSONP is an exception and your response doesn’t look site JSON.
SOLUTION:
Either use JSONP response or use backend proxy.