开发者

Cross Domain Request and JQuery

开发者 https://www.devze.com 2023-02-10 10:06 出处:网络
Im trying to make a cross domain request to a web service via jquery using $.getJSON() and it works fine!However, when I try to ma开发者_开发问答ke the same request in Internet Explorer 7 or 8 the req

Im trying to make a cross domain request to a web service via jquery using $.getJSON() and it works fine! However, when I try to ma开发者_开发问答ke the same request in Internet Explorer 7 or 8 the request is never sent. Anyone have any ideas?


JSONP is here for this purpose. Check the JSONP section in getJSON jQuery documentation.


IE explicitly blocks cross domain requests. Better to use a cross domain proxy on your server for better results!

Some documentation: http://ajaxpatterns.org/Cross-Domain_Proxy

0

精彩评论

暂无评论...
验证码 换一张
取 消