开发者

load web page into jquery ui

开发者 https://www.devze.com 2023-01-19 16:46 出处:网络
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, otherwis

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

精彩评论

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