Slimbox 2 Plugin, jQuery Flickr, and IE8
- by Nick H.
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