admin管理员组文章数量:1386641
I'm trying to get the data with jQuery Cross Domain (on github).. but without success! I read that i must make a request jsonp, but I do not understand what is wrong..
/
Chrome interprets the file as Javascript.. IE9 except a warning because the file "was blocked due to mime type mismatch".. I do not even understand if there is a difference from .txt and .json.
I'm trying to get the data with jQuery Cross Domain (on github).. but without success! I read that i must make a request jsonp, but I do not understand what is wrong..
http://jsfiddle/jzjVh/
Chrome interprets the file as Javascript.. IE9 except a warning because the file "was blocked due to mime type mismatch".. I do not even understand if there is a difference from .txt and .json.
Share Improve this question edited Jun 17, 2012 at 15:51 gdoron 150k59 gold badges302 silver badges371 bronze badges asked Jun 17, 2012 at 15:43 Ermes Enea ColellaErmes Enea Colella 1511 silver badge10 bronze badges 1- You should research for ajax Cross Domain. – gdoron Commented Jun 17, 2012 at 15:45
1 Answer
Reset to default 12And here we go again...
You are fighting with http://en.wikipedia/wiki/Same_origin_policy.
While
Possible solution will be using a local proxy like http://developer.yahoo./javascript/howto-proxy.html
本文标签: javascriptjQuery getJSON cross domainStack Overflow
版权声明:本文标题:javascript - jQuery getJSON cross domain - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744543621a2611760.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论