JQuery Plugin for Joomla
Sunday, December 20, 2009 21:08
I recently released jQuery plugin for Joomla on joomlaguru.com.np. This is a simple plugin that allows user to use jQuery in Joomla and is based on my tutorial here. This plugin works in two modes and allows user a flexibility to replace or use jquery in conjunction with mootools. This plugin is released under GNU/GPL and is free as in free beer!
Features
1. Two modes
User can select to replace mootools with jQuery completely or use jQuery in conjunction with mootools. Using jQuery with mootools introduces noConflict features of jQuery and replaces ‘$’ operator with jquery. This allows other libraries to use ‘$’ operator without conflict.
2. Where to use selection
Use can select where to use jQuery. User can choose to use jQuery in frontend and/ or in administrator.
3. Allows other application to check if jquery is loaded.
This plugin also introduces a variable in application session that allows others to check if jquery is loaded or not. The illustration of use is as below\
$app =& JFactory::getApplication();
//Check to see if jquery is already included
if( $app->get('jquery') === true ) {
//Code here
}
else
{
//Code here
}
Here is the screenshot of plugin parameters

License
The module is released under GNU/GPL license and hence users are allowed distribute and modify the module without warranty what so ever. The developer does not bear any liability for the extension.
Download
Download the latest release from the download section of joomlaguru.com.np or you can click here to download the plugin.
Send in your comments and feedbacks on the plugin. Hope you will like the plugin. Happy reading.

















pres says:
December 24th, 2009 at 9:15 am
can u give a usage example ? Plugins are usually like “{plugin_name }”. Therefore, unclear how to use.
Sanjeev says:
December 24th, 2009 at 10:47 pm
@pres: The usage is simple. Install the plugin, enable it and you can use the jquery in your codes. You can write jQuery codes in your views, modules, or plugins after the installation. But be advised; you need to use jQuery instead of $ operator if you use jQuery in conjunction with mootools.
You don’t need to insert any {plugin_name} type of code. This is a system plugin and enhances the core to support jQuery.
nilambar sharma says:
February 20th, 2010 at 9:48 am
nice. very useful and more interesting is that its free as free beer. thanks a lot.