Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Linking an iframe to open in Lightbox

Is it possible to use a link to link to an iFrame of content that opens in a lightbox or fancybox?

EG; View my Graphic Design Gallery Click Here > Lightbox displaying my gallery from a different site

Possible? How Would I code it within a lightbox/fancybox? I know it's possible now - but can't get it implemented with my layout.

Update - Dec 17th 2011

I'm trying to do it with fancybox, below is the link of the layout I'm developing - I've been able to implement this in a different doc from scratch calling the same libraries/css in the head, so it can't be that. I feel like it has to be some conflict-ions between some of my other inline JavaScript. Can anyone help me figure out why iFrame fancy box won't implement with my layout? (I know theres some JS and code that isn't be used in the layout atm, but it's just because I've been stripping it down to debug, I will use all that code)

Relevant link

like image 787
fred randall Avatar asked Dec 04 '22 19:12

fred randall


1 Answers

With DivBox, you would do something like the following:

<script type="text/javascript">
  $("#link").divbox({ type: 'iframe' });
</script>

<a id="link" href="http://your.other.site">Click Here</a>
like image 96
rabusmar Avatar answered Dec 28 '22 22:12

rabusmar