Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Drupal 6: best way to upgrade jQuery?

I want to upgrade jQuery inside my drupal installation. At the moment I have jQuery 1.2.6 and I would like to upgrade it to jQuery 1.4

I guess some Drupal modules still depends on the old jQuery version. I've tried jquery_update module to upgrade jQuery, but it didn't work. It asked to replace the original Drupal files in the "misc" folder with the new ones, but it didn't work.

Anyway, I was wondering if there is a better method instead of using another module

thanks

like image 357
aneuryzm Avatar asked Apr 26 '10 12:04

aneuryzm


2 Answers

jQuery 1.4 breaks quite a few ajax bits in the admin UI, which are pretty essential. Luckily you can get around this by loading a different version of jQuery depending on what page you are currently viewing.

I recommend using the jQuery update module and modifying it with one of the solutions here (#7 or #11):

http://drupal.org/node/775924

like image 108
jsims281 Avatar answered Sep 29 '22 19:09

jsims281


A very nice solution is the following, especially for people who do not feel very comfortable patching any part of drupal.

The author provides a clean way of running the default jquery version and any other version (of your choice) - side by side.

http://drupal.org/node/1058168

like image 39
SunnyRed Avatar answered Sep 29 '22 19:09

SunnyRed