Autocompleter and Slimbox converted for MooTools 1.2

In our last post we went through all the new goodies that can be found in our release candidate of our code for MooTools 1.2. We’ve spent a bit of time fixing the few bugs we’ve found and gotten emails about (thanks!) and also converted our copies of Autocompleter (authored by Harald Krishner) and also Slimbox, (originally authored by Christophe Beyls).

Autocompleter

For those keeping score, Autocompleter has already been refactored for MooTools 1.2 by its author (the afore mentioned Harald Krishner - aka digitarald). It’s a great class and we didn’t really have any thing to change about it, so why do we include it in our libraries? Well, partly because we want to make use of it, but also because we extend it. We add Autocompleter.JsonP which implements our JsonP request class for script injection instead of Ajax. We also extend it to inject our CSS automatically, (read more about how we manage assets and how you should use these methods yourself).

Finally, we had the time to create unit tests and documentation for the Autocompleter class, which always comes in handy.

Slimbox

Slimbox is a MooTools port of the popular Lightbox JavaScript library. The author of the port (Christophe Beyls) hasn’t updated it to 1.2, but we had it in our library already. The real change we’ve made is that it’s now a class, where as with the original (and the port that Christophe did), it’s just a namespace of methods and values. By making it a class it’s possible to have options and events, for there to be more than one instance on a page, and for you to extend it to alter the functionality.

Out of the box though, it works just like the original lightbox script.

On RC2 of Our Code Base

Stay tuned for more goodness as we continue our push for our own release of our plugin libraries. At this point the code should be stable enough for you to start to actually use if you want to. As mentioned in our last post, we have specs and unit tests that you can run through in the browsers you support to see if you find any issues. As always, let us know if you find anything that’s out of whack.

3 Responses to “Autocompleter and Slimbox converted for MooTools 1.2”

  1. Stratboy Says:

    About Slimbox: there’s another lightbox-like tool for mootools 1.2 that I’ve made about 1 month ago: http://reghellin.com/milkbox. It has some differences, and maybe improvements. And in about a week, there will be the v1.2, with autoPlay.

    Have fun!

  2. Bodom78 Says:

    Just tried updating my Slimbox / Lightbox with you 1.2 version and it worked out of the box.

    Only thing is I cannot override any of the options in the new instance.

    I’m using MooTools 1.2 + -more from the official site and I only downloaded the slimbox.js from cnet.

    Any advice?

  3. CNET Clientside MooTools Plugins 1.2 Release » Clientside Says:

    [...] Hot on the heals of that release is our release of CNET’s plugin repository refactored for 1.2. I’ve posted about what’s new before but I’ll give a quick overview of what’s on offer and what’s new: [...]

Leave a Reply

You must be logged in to post a comment.