We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7231
    • 4,205 Posts
    With so much praise going around I figure it is only fair to see why some people prefer mootools. I am no JS coder but found this interesting: http://juliocapote.com/post/52467447/why-mootools-or-why-not-jquery
      [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

      Something is happening here, but you don't know what it is.
      Do you, Mr. Jones? - [bob dylan]
      • 10487 MODX Staff
      • 1,535 Posts
      Garry Nutting Reply #2, 18 years ago
      Good article indeed! I have to say I’m a proponent of Mootools, I’ve used it for quite a while now. It’s been relatively easy all the way to get it doing what I need to do from a JS framework.

      But, I’m not completely putting down jQuery, that too has proved apt on a few occasions. Horses for courses, that’s what I say wink
        Garry Nutting
        Senior Developer
        MODX, LLC

        Email: [email protected]
        Twitter: @garryn
        Web: modx.com
        • 7231
        • 4,205 Posts
        A little more on the mootools x jQuery discussion:
        http://clientside.cnet.com/best-practices/jquery-and-the-ajax-experience-programming-to-the-pattern-and-what-really-makes-one-framework-different-from-another/

        It is a very interesting article, a bit long but interesting none the less.
          [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

          Something is happening here, but you don't know what it is.
          Do you, Mr. Jones? - [bob dylan]
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          More and more, it looks like a case of horses for courses. If you want to build a complex web application, extjs is fantastic. If you want serious Ajax goodness in your page, MooTools does a great job. If you want accordions and fancy effects, JQuery is your friend.

            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 34017
            • 898 Posts
            Well I would say jquery does fine on the ajaxy goodness part.
              Chuck the Trukk
              ProWebscape.com :: Nashville-WebDesign.com
              - - - - - - - -
              What are TV's? Here's some info below.
              http://modxcms.com/forums/index.php/topic,21081.msg159009.html#msg1590091
              http://modxcms.com/forums/index.php/topic,14957.msg97008.html#msg97008
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              Food fight!! grin grin grin
                Studying MODX in the desert - http://sottwell.com
                Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                Join the Slack Community - http://modx.org
                • 34017
                • 898 Posts
                ::throwin potatos:: tongue
                  Chuck the Trukk
                  ProWebscape.com :: Nashville-WebDesign.com
                  - - - - - - - -
                  What are TV's? Here's some info below.
                  http://modxcms.com/forums/index.php/topic,21081.msg159009.html#msg1590091
                  http://modxcms.com/forums/index.php/topic,14957.msg97008.html#msg97008
                  • 28042 ☆ A M B ☆
                  • 24,524 Posts
                  I’ve got a mushy old banana... shocked
                    Studying MODX in the desert - http://sottwell.com
                    Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                    Join the Slack Community - http://modx.org
                    • 4018
                    • 1,131 Posts
                    Gonna put my two-cents in...

                    I’ve used Mootools for quite some time now. In fact, it’s the first javascript framework that I adopted for longterm use. It’s a good framework and does the job. Where Mootools really shines is in its ability to promote and use classes. However, Mootools isn’t without it’s own quirks. There are areas here and there that can really try your patience. With Mootools, I think it really depends on your methods and style of programming. While I’m comfortable with Mootools and like it, I really wanted to find something that was a bit easier, quicker, and more flexible to deal with different situations and problems.

                    Last month, I decided to give jQuery a whirl and even picked up a good book on it (jQuery in Action). What really surprises me is how robust jQuery is when it comes to selectors. The thing I really like is that there is just one way to deal with selectors. With Mootools, the dollar function is used to represent an element with a specific ID and the double-dollar being used for selecting classes and such. Personally, this has always bothered me. With jQuery, you use just the dollar function and can select anything just like you do with CSS. To me this is far more flexible and, in my opinion, makes jQuery more powerful than Mootools in being able to select elements.

                    As far as classes are concerned, jQuery does allow class-like functionality in the form of plugins. Mootools does the same thing via the extend function but with jQuery it just seems much easier to extend the core and create your own plugins. When it comes to native support for classes, you can add your own classes as you see fit with any javascript library. After all, what is a class in javascript but a wrapped array of functions. The only difference is whether you want the class to extend off the namespace of the library you’re using or not.

                    The other thing I like about jQuery is that it feels like I can do so much more with so much less code. The average things I’m used to doing with Mootools takes less code to complete with jQuery. That means faster development and less time writing and debugging code.

                    Which library you go with really depends on what you want it to do, what your philosophy is, and what your programming style is. I’ve used Mootools for some time now but after taking a hard look at jQuery I decided that it was the best one for me. I also like ExtJS for larger applications. Just pick the poison that is best for you. laugh

                      Jeff Whitfield

                      "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
                      • 29774
                      • 386 Posts
                      +1 for jQuery

                      The article makes some good points but some claims are simply not true.

                      Point 1 - ’Class’ support. There’s nothing stopping you using jQuery with your own objects and constructors and the code reuse pattern of your choice. You don’t have to attach everything to $(document).ready(), that’s just a convenience.
                      Point 4 - Easing equations - I’d rather have a minimal lightweight core and add what I need when I really need it.
                      Point 5 - var el = $("");
                      Point 6 - jQuery has plugins, and it’s very easy to write your own.
                      Point 9 - chaining objects and events is what makes jQuery so powerful, and in my view is a better fit for javascript’s prototypical object model.
                      Read this:
                      http://www.crockford.com/javascript/inheritance.html
                        Snippets: GoogleMap | FileDetails | Related Plugin: SSL