jQuery Thickbox or similar to show iFrame?

Mitchel Sellers picture Mitchel Sellers · Oct 17, 2008 · Viewed 17.2k times · Source

I have been looking at jQUery thickbox for showing modal dialogs with images, it is great. But now I have the need to display a hidden div of content that contains an iFrame in a similar fashion, with a link to open the content. So I'd have something like this.

<a href="">Open window in Modal Dialog</a>

<div id="myContent">
    <h1>Look at me!</h1>
    <iframe src="http://www.google.com" />
</div>

And need to show it in the dialog. Is it possible?

Answer

John Sheehan picture John Sheehan · Oct 17, 2008

Thickbox supports that. See inline content demo at http://jquery.com/demo/thickbox/