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 insert à navigation bar directly into a tumblr blog.
PiTheNumber
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.
You can take a look at cross domain ajax request with YQL
and jQuery
.
来源:https://stackoverflow.com/questions/8973672/jquery-load-content-from-a-remote-site