Lightbox on List Central changed

A while back I wrote about List Central using Slimbox. While I still love Slimbox, and use it over at one of my other blogs, I’ve decided to use Multibox instead so that I can also use it for some neat AJAX content, as well as the images.

In looking for the right lightbox solution for List Central, I found this awesome, interactive comparison of different lightbox clones by PlanetOzh.com. It allows to to specify the Javascript framework you want as well as the features you need, in order to narrow down your search for the perfect lightbox.

With the Lighbox Clone comparison’s help, I decided to use Phatfusion’s super slick Multibox. But, as with most things in web development, it wasn’t that simple. The Phatfusion Multibox is built for MooTools 1.11. I need to use MooTools 1.2 for other features. Luckily I found Multibox for MooTools 1.2 by Liam Smart. It works great!

There is a bit of a trick with Liam’s Multibox that is yet to be documented properly. If you want to be able to close an open multibox from a button inside an open multibox, or access document elements or Javascript variables from the main page, from within a multibox opened via the AJAX method, you must use the Javascript reserved word “top”, such as:

top.myMultibox.close();

Thank you Phatfusion and Liam Smart for building Multibox and Multibox for MooTools 1.2!

Posted in Javascript, Web Development. Tagged with , , .

0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

Some HTML is OK

(required)

(required, but never shared)

or, reply to this post via trackback.