为什么没有这个AJAX请求中的jsfiddle工作 - 而它正常工作在我的网站? [英] Why isn't this AJAX request working in JSFiddle - while it works fine on my site?
问题描述
我一直在尝试一些超过8小时,调试,并为了得到一个适当的例子来问,为什么它不工作,我想放在一起的jsfiddle副本的问题,但AJAX请求没有按不像是会拨打电话。任何帮助找出为什么会大大AP preciated!
I've been trying to debug something for over 8 hours, and in order to get a proper example to ask the question of why it's not working, I'm trying to put together a JSFiddle replica, but the AJAX request doesn't seem to make the call. Any help in finding out why would be greatly appreciated!
链接到的jsfiddle: http://jsfiddle.net/cqpka/8/
Link to JSFiddle: http://jsfiddle.net/cqpka/8/
我说的是 $。获得()
方法。
推荐答案
它看起来像一个同源策略违规的调用从的jsfiddle外部JSON文件。它会从域 offer-rotator.com
正常工作。
It looks like a same origin policy violation to call an external JSON file from jsfiddle. It would work correctly from the domain offer-rotator.com
.
这篇关于为什么没有这个AJAX请求中的jsfiddle工作 - 而它正常工作在我的网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!