JQuery load content from a remote site

后端 未结 2 906
野趣味
野趣味 2021-01-06 18:02

I would like to load content from another site using JQuery, Unfortunately the .load() function is limited to the current domain. Is there any way around ? I would like to i

相关标签:
2条回答
  • 2021-01-06 18:34

    You can take a look at cross domain ajax request with YQL and jQuery.

    http://net.tutsplus.com/tutorials/javascript-ajax/quick-tip-cross-domain-ajax-request-with-yql-and-jquery/

    0 讨论(0)
  • 2021-01-06 18:47

    Have a look at Ways to circumvent the same-origin policy If you have control over the other side it is quite easy. Otherwise try Yahoos YQL.

    0 讨论(0)
提交回复
热议问题