Working with Mootools 1.3

From Joomla! Documentation

(Redirected from J2.5:Working with Mootools 1.3)

The "J2.5" namespace is a namespace scheduled to be archived. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.


MooTools is Joomla's standard Javascript framework. It provides a more object oriented approach to JavaScript.

  • Joomla 1.6.0 and newer include MooTools Core 1.3 and MooTools More including all its modules.
  • Joomla 1.7.0 and newer include MooTools Core 1.3.2 and MooTools More including all its modules.

How to use Mootools[edit]

If your extension uses Mootools you can use the following code to include the framework in Joomla's output.

Mootools Core:


Mootools Core and Mootools More:

JHtml::_('behavior.framework', true);

Differences to Mootools 1.1/1.2[edit]

Many old functions have been removed or renamed in Mootools 1.3. Thanks to the compatibility module they still work fine in Joomla 1.6, however a future version of Joomla is likely to remove the compatibility module. It is recommended to follow the Mootools' Upgrade from 1.2 to 1.3 guide to future proof your code.

Also new in Mootools 1.3 is, that the $() function is deprecated. Instead should be used. This will help when other JavaScript frameworks are mixed with Mootools code.

More information[edit]

You can find more information, examples and Mootools plug-ins on the Mootools Homepage.