vascripts built above frameworks allowing to code more efficiently while solving cross-browser compatibility issues. However it would be nice if the plugins developers agree on a main framework that will be used whenever possible when writing plugins for Textpattern.
I’ve seen that JQuery has been added to Textpattern recently. Is this an official and definitive decision?
In the jungle of JS frameworks, here are the main choices:
* “Prototype”:
http://prototype.conio.net/ is one of the first and most used frameworks. It allows you to write your scripts as classes in an OO style. It’s a big download, about 50Kb uncompressed. It lacks effects, drag&drop and other fancy stuff so it is often used with Scriptaculous (a heavy all-purpose library) or Moo.fx (a tiny effects library, the new version does not use Prototype anymore, see below).
* “JQuery”:
http://jquery.com/ is a lightweight all-purpose library which is really powerful. Its main features are selectors, chained methods. It can be extended by many plugins. However, it is not designed to write classes like Prototype.
* “Mootools”:
http://mootools.net/ is brand new and looks amazing. It is a mix between Prototype and JQuery that claims to use best of both worlds. It is entirely modulable and really compact (the total size when using all modules is equal to JQuery). It also allows you to create or extend classes in a really elegant way. Mootools includes the new version of Moo.Fx .