Embed external website inside a page
Posted
by jasongullickson
on Stack Overflow
See other posts from Stack Overflow
or by jasongullickson
Published on 2010-04-15T12:23:52Z
Indexed on
2010/04/30
12:37 UTC
Read the original article
Hit count: 163
I'd like to load something from website B into a page on website A and contain the functionality of website B within a container on website A.
I tried doing this using a div and jQuery's load()
method but I run into cross-domain-scripting issues (I think, it works with a local file but not a remote URL).
I also tried using an iframe but strange things happen (for example, when a link is clicked in the "contained" website B, it reloads the entire browser, losing the content of website A).
I've read about some server-side ways of handling this (and it may just come to that) but ideally I want something completely client side, JavaScript and HTML.
Any ideas?
© Stack Overflow or respective owner