jQuery 1.4+ in drupal 6

by Vivek   Last Updated July 10, 2017 13:07 PM

I have jquery update module, version 6.x-2.0-alpha1 installed which supports jquery - 1.3.2. I need to update to jquery - 1.4+ for a jquery plugin to work. I tried replacing the existing jquery.js and jquery-min.js in the jquery_update/replace directory with the latest jquery files and made some changes to the jquery_update.module as suggested here. But after doing so, jquery started loading from misc/jquery.js which was an even older version. So, is there any simple way to update jquery? Has anyone succeeded in doing so? I cannot implement the noConflict solution here since I will be using third party jQuery plugins.

Answers 1

The dev version of jQuery Update for Drupal 6 will get you up to jQuery version 1.7 (but it does break some of the admin UI).

There are a few patches available, (see Fix jQuery 1.7 for Drupal 6 and the Issue Queue in general), with varying reported levels of success.

If you choose to go down the 'manual' route then you'll have a lot of core/contrib javascript to fix. I think your best bet would be to base whatever solution you come up with on the current dev release of jQuery Update.

If you specifically only need version 1.4.2, then there's some instructions on how to do it here.

April 30, 2012 14:09 PM

Related Questions

How to update module code from 6.x to 7.x

Updated June 20, 2017 20:07 PM