So a new Tabulas feature! Wow! Finally, your subscription to this journal has paid off handsomely in dividends!!!! YOU CAN FINALLY DO SOMETHING NEW!!! Hah, just kidding (sorta).

I finally got around to integrating Lightbox2 to the galleries here. What does this mean?

Click any image in this gallery to see the effect. You can hover over each of the halves of the images to navigate to the next image or to the previous image.

Want a screenshot of it: Well, here's a screenshot of it, which is showing an image of a screenshot of it:

Confused already?

To enable, go to the new control panel and set the gallery option; this will make it work for all your images in your gallery.

. . .

I really like this little library - I think this was the first project I saw using Lightbox that sold me on the Prototype framework. Since then, there's been a few rumblings about how "bad" Prototype is - what's amusing is we ran into this exact problem with DekiWiki which was being caused by Xinha (which was extending the Array object and causing all sorts of headache - it took us days to track this down).

I had originally imported Prototype as the sole JS lib into DekiWiki, which was dropped in favor of Dojo, which was then dropped back in favor of Prototype. Then, one of our contractors didn't like that and ended up importing YUI and jQuery into DekiWiki. Rather than fight this contractor, we ended up migrating everything to jQuery and YUI in DekiWiki (and that's the way it's staying, damnit!

The reality for anybody looking for frameworks: Criticisms of Prototype like the one linked above shouldn't turn you off completely. My guess is most people who are using these frameworks are doing very minor modifications on libraries that are built on top of these frameworks.

Posted by roy on May 28, 2007 at 02:53 PM in Web Development, Tabulas, MindTouch | 14 Comments

Related Entries

Linked Entries

These are Tabulas entries which have linked to this particular entry.

Want to comment with Tabulas?. Please login.

Comment posted on June 5th, 2007 at 08:04 AM
Is this work only for payed accounts?
Comment posted on June 5th, 2007 at 10:09 AM
nope
Comment posted on May 30th, 2007 at 02:27 AM
no, lightbox happens once at least 1 image gets loaded, that being the first image so it works sequentially, thus images at the end of the sequence wait for images before it to load before it can be viewed...
Comment posted on May 29th, 2007 at 03:07 AM
whew.. finally got it working on my blog... ;) it works great together with my post scripts... thanks for the cool enhangement ;) roy rocks!
Comment posted on May 28th, 2007 at 09:09 PM
add in the <!--SITE['METATAGS']--> in between your HEAD tags.

also, you seem to have some bad markup in your BODY tag; i'd change that whole thing to just <body>
Comment posted on May 28th, 2007 at 10:52 PM
you should remove your javascript calls - they are causing javascript errors :)
Comment posted on May 29th, 2007 at 12:03 AM
i meant the custom ones you put in for the lightbox:

<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="js/lightbox.js"></script>

these are already inserted by the METATAGS command

gilgamesh (guest)

Comment posted on May 28th, 2007 at 08:52 PM
yayness, kawaii feature ^__^

suteki~
Comment posted on May 28th, 2007 at 05:43 PM
i tried it, so cool :D though i noticed that all images in the gallery (or in a patricular folder) has to load before this effect happens.

thanks for this roy!
Comment posted on May 28th, 2007 at 05:49 PM
do the images need to be fully loaded, or just the page?

the page should be the only thing that should be required to load before it'll execute; the images are irrelevant (cause they'll be loaded once the lightbox window launches)
Comment posted on May 28th, 2007 at 06:10 PM
i guess it's the whole page and it just happens that the images (thumbnails) in my gallery were the last to finish loading.
Comment posted on May 28th, 2007 at 05:32 PM
Wow, cool effect O__O
Comment posted on May 28th, 2007 at 03:47 PM
coolness. :)
Comment posted on May 28th, 2007 at 03:20 PM
yo, tight apartment. and yes, tight new option. has the bed gotten any action yet?