tags:

views:

178

answers:

2

jQuery 1.4 breaks various modules and is not ready to replace 1.3.2 wholesale. But on various pages with complex javascript interactions, I need 1.4.

What's a good way to force drupal to use 1.4 on specific pages?

Thanks.

A: 

Is it possible to edit templates? Or how about create a script that includes jQuery based on the page. Like if your body has the class 1.3.2, then it includes the old version, or if it has the class 1.4 it includes the new one.

Kyle
+1  A: 

Take a look at this post, the author describes replacing a js file using hook_theme_registry_alter and a preprocess function. http://www.mediacurrent.com/blogs/remove-or-replace-jscss-page

Nicholai
brilliant! Thanks!
Mark