« Moving to the matrix | Main | IPTV comes to the XBox360 »

December 27, 2006

Getting Lightbox to work in partials

So there I was, earlier this evening, plodding along on my little Ruby on Rails Web 2.0 media application (coming "real soon now"). And I was stumped for a while trying to get Lightbox to work on images that are loaded into a page via a partial. It just wouldn't work.

The answer however seems to be to call initLightbox(); in the partial (i.e. initialize Lightbox again after the partial has loaded).

Hope this helps someone.

Posted by Matthew at December 27, 2006 10:36 PM

Comments