Experimental project

This is a sandbox project, which contains experimental code for developer use only.

CONTENTS OF THIS FILE
---------------------
* Introduction
* Requirements
* Installation

INTRODUCTION
------------
Jquery Noconflict is a module that enables using multiple
versions of Jquery at the same time.
Features
* Access different versions of Jquery simultaneously.

REQUIREMENTS
------------
This module requires the following library:
* Jquery (http://jquery.com/download/)

INSTALLATION
------------
* Install as usual, see https://drupal.org/documentation/install for further information.
You can load any version of the Jquery.
Simply download the Jquery library and put the file into the Jquery Noconflict module folder.
From the admin settings, provide the name of the Jquery JS file(s) comma separated for multiple versions of Jquery, and save.
That's all.

Example:
Create a page content with input filter set to PHP.
Write the following 2 lines to check the versions of Jquery -

<script>
alert($().jquery);
alert(ej1().jquery);
<script>

The $ handler returns the Dupal's default Jquery version.
The ej1 handler returns the Jquery version for the new Jquery files provided.
If you use 2 new Jquery versions for example 1.7 and 2.0.1 and your Drupal already has 1.2.6 then use the following script -

<script>
alert($().jquery);
alert(ej1().jquery);
alert(ej2().jquery);
<script>

The above script will alert 3 versions of Jquery.
The first alert will display the version of the Drupal default jquery.
The second and third alert will display the versions of Jquery that is provided from admin settings.

Please note that the number of files you provide in the admin settings can be accessed sequentially via ej1, ej2, ej3....

Add as many Jquery you need and enjoy!

Project information