Fancybox2 Inline Content Gallery

Posted by beefchimi on Stack Overflow See other posts from Stack Overflow or by beefchimi
Published on 2012-10-29T16:57:51Z Indexed on 2012/10/29 17:00 UTC
Read the original article Hit count: 126

Filed under:
|
|
|

I am trying to create a gallery of inline content with Fancybox 2, and am failing miserably.

I checked out some other resources online and they seem to indicate doing this relatively easily, yet, I cannot seem to get it to work.

Here is my fiddle:

http://jsfiddle.net/beefchimi/jtxHd/2/

Now, I feel like the fiddle is not loading the resources, so thats a problem. But even with the resources this does not work, I get the fancybox error.

Resources:

http://fancyapps.com/fancybox/source/jquery.fancybox.pack.js?v=2.1.3 http://fancyapps.com/fancybox/source/jquery.fancybox.css?v=2.1.3

Any help would be greatly appreciated.

EDIT: So I can't submit my question without including some code, because linking to jsfiddle isn't okay, so, here is my fancybox initialization, which you will also find in the jsfiddle:

$(document).ready(function() {

    $('a.inlinepopup').fancybox({
        'width'           : '75%',
        'height'          : '75%',
        'autoScale'       : false,
        'type'            : 'iframe'
    });

});

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about fancybox