0

I playing with FancyBox and stumbling about the following issue:

I try to open a Website inside a iFrame by using this code

<a class="various" data-fancybox-type="iframe" href="http://www.golem.de">Iframe</a>

which works fine, but if I want to use a image instead the "Iframe" text it just open a white box:

<a class="various" data-fancybox-type="iframe" href="http://www.golem.de"><img scr="img/1.jpg"></a>

Any advise?

phx
  • 5,927
  • 4
  • 24
  • 24
  • use javascript to declare iframe type , [see here](http://stackoverflow.com/questions/2464870/fancybox-iframe-dimension) – khaled_webdev Jun 03 '12 at 17:26
  • You have a typo: ` – JFK Jun 03 '12 at 19:06
  • No, just a mistype :) but you are right, i want to use a thumbnail to fire the fancy box iframe – phx Jun 03 '12 at 19:36
  • then I don't see any issue with your code ... you are using fancybox v2.x, aren't you? does it fire OK without the thumbnail? got any link? – JFK Jun 04 '12 at 01:03

1 Answers1

0

There's nothing in the official documentation about this problem: http://fancybox.net/. Take a look at the "Examples of manual call" in the demo page (home page). By the way, the iframe option is mostly used to display external content, not an image, which you can always display using the default options.

  • I want to display external content, look at my example. I only want the image to be the Link Object for the iFrame. – phx Jun 03 '12 at 17:40
  • 1
    he just wants to use a thumbnail to fire the fancybox iframe – JFK Jun 03 '12 at 18:54