I love jQuery!!!

Hi everyone!

I just wanted to share my experience with jQuery, and also give you a little sneak peek into the new Joomla extensions that I am working on. I am working on a new extension, and I hope to have it out by the end of the month. Well, anyways, as you know, Joomla 1.5 supports Mootools 1.1 out-of-the-box, and I tried to implement the Fx.Slide feature. To my dismay, it didn’t work. It just made the layer invisible and then visible again, and on top of that it had some quirks when the layers are cascaded within each other. I did a little research about it, but then I didn’t find much. However, I think maybe I need to download some kind of Mootools plugin, Mootools More, I think, to get it to work. When I tried to look for that download at the Mootools website, I couldn’t find it. I just got fed up. Then, I went to check out jQuery!

Now, I have had some pretty good experiences with jQuery in the past, but my experience with Mootools have really made me come to appreciate it even more! The code for jQuery just works with less lines of code than the Mootools equivalent. For example, to slide an element up or down (toggle), in Mootools, you should do something like:

window.addEvent('domready', function() {
    var myFx = new Fx.Slide('element', {
            duration: 'long',
            transition: 'sine:in:out'
    $('some_element').addEvent('click', function() {

In jQuery, you do something like this:

        jQuery('#element').slideToggle('slow', 'swing');

It’s less code, and it just works, and all you have to do is download the jQuery js file. One file, and it just works. I love jQuery!

I just wanted to share my experience with everyone. Hope you will take a look at jQuery!

God Bless!

Leave a Reply