Coding & Programming > JavaScript Forum

Mootools Or JQuery

(1/1)

james_ashby:
Which one should I use for my upcoming projects ? I don't want to code the javascript directly so using a framework is definitely the way I want to go, but which one is most used and most popular ?

I've heard JQuery is the one to go for but MooTools has some excellent features ? What do you all use ?

Conet:
Both libraries are fairly easy to use, but their respective ways of selecting and performing actions are a bit different
it will really depend on how you view things when you code, for me, the chainability of jquery struck a chord

i would suggest doing something fairly simple in both, and see which feels better for you
everything from looking through tutorials, apis, etc, to accomplish the task should give you a good idea of what you are in for

the only thing i would tout for one over the other would be jquery’s community, which has been fantastic every step of the way in my experience

You can see comparison of JavaScript frameworks here:

http://en.wikipedia.org/wiki/Comparison_of_JavaScript_frameworks [nofollow]
 

ivan:
I tried Prototype and Scriptalicious before I moved over to jQuery and their UI library. I think jQuery is the Kohana of the JS framework world - always changing!
jQuery FTW

TomClarke:
JQuery focuses on expressiveness, quick and easy coding, and the DOM while MooTools focuses on extension, inheritance, legibility, reuse, and maintability. If you put those two things on opposite sides of a scale, The jQuery side translates into somerhing with which its easy to get started and see quick results but can turn into code that is harder to reuse and maintain, while the MoonTools side takes longer to learn and requires you to write more code upfront before you see results, but afterwards is more reusable and more maintainable.

Elena_L:

--- Quote from: james_ashby on 06-10-2010, 07:52:33 ---Which one should I use for my upcoming projects ? I don't want to code the javascript directly so using a framework is definitely the way I want to go, but which one is most used and most popular ?

I've heard JQuery is the one to go for but MooTools has some excellent features ? What do you all use ?

--- End quote ---

You can modify joomla code :

go to :

libraries/joomla/html/html/behaviour.php

Search where the mootools is loaded .

Add an IF/ELSE :

ex:

$component = JRequest::getVar("option");
//xmap does not support Mootools 1.2
if($component == "com_xmap") {
   JHTML::script('jquery.js', 'media/system/js/', false);
 }

Navigation

[0] Message Index

Go to full version