开发者

load web page into jquery ui

is there anyway of loading a web page开发者_如何学运维 from a different domain into a jquery ui dialog?


Only if you're using an <iframe> or proxying the content through your own domain, otherwise you're blocked by the same-origin policy. For example:

$('<iframe src="http://www.google.com" />').dialog();


Kind of hackish, but you could use a combination of YQL and JSONp

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜