Community

[Solved] jQuery and MooTools js library conflicts on ajax forms on Drupal 7

I've been working on site where I'm using MooTools js framework to do several needed js things and everything worked fine until we started working on ajax forms.

So basically clean Drupal 7.20 installation and MooTools 1.45 core library added on default Bartik theme works but if you try to do ajax forms like on "AJAX Example module" you will get popup error "An error occurred while attempting to process /pathtoinstallation/system/ajax: this is not a function" when using the ajax functions on form.

On Drupal 6 I never had such a problem and on Drupal 7 those libraries also seems to work nicely together other vice.

I'm just wondering if anyone has seen this same issue and had been able to fix it somehow somewhere?

Thanks!

Comments

The problem was jQuery Form

The problem was jQuery Form Plugin file jquery.form.js in "misc/" folder. I replaced it with version 3.27 and it fixed the problem. There is something strange on the version 2.52 that ships with Drupal 7.20 which is latest atm.

nobody click here