Embed an External Page Without an Iframe?

JacobTheDev picture JacobTheDev · Dec 8, 2011 · Viewed 150.1k times · Source

Is there any way to embed an external web page without using an iframe? I have access to both sites, I just want the page that the content is embedded on to resize based on the content that is embedded (it will change over time, and be on multiple sites).

Thanks!

EDIT: I don't think any kind of AJAX would work because it's cross-site, and JavaScript doesn't let you load off-site content (as far as I'm aware).

Answer

Sudhir Bastakoti picture Sudhir Bastakoti · Dec 8, 2011

You could load the external page with jquery:

<script>$("#testLoad").load("http://www.somesite.com/somepage.html");</script>
<div id="testLoad"></div>
//would this help