Slimbox 2 Plugin, jQuery Flickr, and IE8

Posted by Nick H. on Stack Overflow See other posts from Stack Overflow or by Nick H.
Published on 2010-03-22T03:17:47Z Indexed on 2010/03/22 3:21 UTC
Read the original article Hit count: 734

Hello, I am currently developing a site that I make use of two jQuery plugins:

Flickr jquery plugin (http://code.google.com/p/jquery-flickr/) Slimbox (http://code.google.com/p/slimbox/)

The first plugin is used to pull in flickr photos from a specific account. These photos are displayed as thumbnails on the page. I am then using the second plugin to display larger views of these images.

Because the flickr photos are fetched when the page loads, I am calling the Slimbox 2 function like this:

$(document).ready(function() {
        $("#Flickr").flickr(); //Call Flickr plugin
        $(window).bind('load', function() {
                $("#Flickr a").slimbox();//Call Slimbox2
        });

}); 

On first testing this seemed to have worked perfectly. I tested multiple versions of FireFox, IE7, IE6, and Safari. Everything is great. However, the Slimbox lightbox effest does not work in IE8. However, if I put IE8 into compatibility mode, everything works as expected. I would like to avoid forcing compatibility mode.

There are no javascript errors and I am at a loss for testing. Here is a link to a sample:

http://www.njhall.com/JRMcCourt-Builders/index.html#ourwork

Any advice would be greatly appreciated.

Thanks Nick

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jquery-plugins