views:

6386

answers:

3

Using Thickbox is great it allows me to load external sites into the thickbox and they retain their functionality, appearance, etc. I know how to load simple content into a div with jquery but I am stuck on how to load external content to a div in a page (preferably via onload event) and have that div act like Thickbox and retain the functionality and appearance without the popup thickbox window.

All of the sites are in different child directories but have the same parent.

I hope I explained it well enough.

I am using jquery 1.3.1.

+1  A: 

Personally I'd just go for an iFrame, which from your description I think would provide the same functionality.

Unkwntech
I am not sure if this would be a new question or not, but is there a simple way to embed an iframe in a div? I was tinkering with jframe.js last night with no success.
<div ...><iframe ...>Content to show if the frame is disabled</iframe></div>
Unkwntech
+1  A: 

Thickbox is (usually) an iframe .. iframe is pretty much your only solution for this if the content is from foreign websites (sites you dont control) ..

Scott Evernden
I control all of the sites and can take care of the css pretty easily, but I am trying to avoid tinkering with all of the internal pathing of those sites (they are php, perl, and ruby) and I was hoping to be able to pass their directory into a div. I suspect iframe will be best. Thank you.
A: 

for me following works great. load-remote-content-into-div-element

Pragnesh Patel