开发者

load specific div from external website in another domain into iframe

I've seen there are several ways to do it WHEN the websites are in the same domain, but this is not my case and, since I'm much more a designer than a programmer, I'd go as far as to ask for the s开发者_开发问答implest, most straight-forward process.


The best way to do this would be to use a server-side script to parse the remote site, thereby degrading gracefully if there's any Javascript problems on the client-side and giving you control over the environment when you're parsing the remote site.

You could, e.g. write a php script to return just the relevant div, and then point the iframe straight at that.

What language / framework were you thinking of using?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜