Javascript conflict

More
07 May 2011 01:23 #1124 by julienito
Hello,

First of all congratulations for this extension. This is one of the most complete and well done I've seen in the Joomla world.

I've just tried to add the subscription module in a site where we use jQuery (without compatibilty mode), and the submission script did cause some issues ($('mcsignupSubmit...') triggers jQuery and does not return the element).
I'm posting here the way I solved it just in case someone else encounters a similar problem: replace the following in the file modules/mod_mailchimpsignup/tmpl/default.php:
- line 32: $('mcsignupSubmit... by document.getElementById('mcsignupSubmit...
- lines 161, 163 and 165: $('mcsignupResult... by document.getElementById('mcsignupResult...

... or better: override the file in your own template.

Cheers,

joomlamailer version: 1.7
Joomla! version: 1.6.3
PHP version: 5.3
MySQL version: 5.x

Please Log in or Create an account to join the conversation.

More
10 May 2011 15:04 #1136 by pete
Replied by pete on topic Javascript conflict
Hi julienito,

Thanks for sharing your solution!
When using jQuery on a Joomla site you should always make use of the no conflict mode. Joomla and many extensions use Mootools and it's very likely that you run into problems like this one. If you enable the no conflict mode you avoid all kind of conflicts from the beginning.

Kind regards,
Pete

Please Log in or Create an account to join the conversation.