JQuery getJSON cross domain

I am trying to get data using jQuery Cross Domain (on github) .. but without success! I read what a jsonp request should do, but I don't understand what is wrong.

http://jsfiddle.net/jzjVh/

Chrome interprets the file as Javascript. IE9, except for the warning, because the file "was locked due to a mime type mismatch." I don’t even understand if there is a difference with .txt and .json.

+2
source share
1 answer

And now we go again ...
You are fighting with http://en.wikipedia.org/wiki/Same_origin_policy .

enter image description here
Till

enter image description here

A possible solution would be to use a local proxy, for example http://developer.yahoo.com/javascript/howto-proxy.html

enter image description here

+11
source

All Articles