MauF
MauF

Reputation: 451

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 simplest, most straight-forward process.

Upvotes: 0

Views: 829

Answers (1)

simpleigh
simpleigh

Reputation: 2894

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?

Upvotes: 1

Related Questions