jQuery on DerekAllard.com
April 24th, 2008
I’ve been saying for a little while now that I’ve fallen in love with jQuery, and I mean, who hasn’t? I’m so impressed with it, and so are the other smart people at EllisLab, that we’re integrating it into CodeIgniter, and into ExpressionEngine. But this blog still doesn’t use it. If you poke into the source code, you’ll see Mootools.
<script type="text/javascript" src="/js/mootools.js"></script>
So I’ve been wanting to migrate my own code to recently out of Moo, and into jQuery. This will let me do a few things, not the least of which is apply the CI jQuery library in another real-world test case. So why haven’t I moved it yet? Well, a quick audit of my code, and the only thing I’m using Moo for is the fancy lightbox effect on my about page, and several posts. It actually is Slimbox, a clone of Lokesh Dhakar’s excellent (and popular) Lightbox. So the short answer, is that I didn’t want to migrate the legacy code.
Then it dawned on me, my code is all semantic and clean, there’s no javascript hooks, the only markup used to implement lightbox is
<a rel="lightbox" href="something">...</a>
so it should be an easy replacement. Then yesterday, (via Ed Finkler’s Funkatron), I found the jQuery Lightbox plugin. How is it that I only just yesterday found this?
A quick look, and it seems to be solidly written, the semantics are the same, and it should be (apologies to Ron Popeil) the “set it and forget it” solution I’ve been looking for.
So in the next few days, the plan is to migrate DerekAllard.com to jQuery, and start adding a bit more sexiness into the robot.
Next post: my favourite jQuery plugins ;)
This entry was made on April 24th, 2008 @ 19:35 and filed into Javascript, Noteworthy.

Willem wrote on April 25th, 2008 @ 1:07
Hi Derek. jQuery rulez yeah!! After the announcement that EE wil use jQuery in the 2.0 version i had a look at jquery and it looks great!
Immediately i’ve tested some plugins and saw a beautifull one for showing pictures on my weblog entry’s.
Look at http://www.f1crew.nl/index/new where i uses jQuery in a combination with highslide.
Look forward to all the stuff that comes in 2.0 with jQuery, it will be awesome i think.