- Posts: 1
- Thank you received: 0
Javascript conflict
07 May 2011 01:23 #1124
by julienito
Javascript conflict was created 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
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.
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
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.
joomlamailer uses cookies!
This website uses cookies to provide user authentication and improve your user experience. Please indicate whether you consent to our site placing these cookies on your device. We are not using cookies for marketing purposes. For more information visit our privacy policy
I agree
Copyright 2010 freakedout.de - All Rights Reserved
Joomlamailer.com is not affiliated with or endorsed by The Joomla! Project™, Open Source Matters, Inc. or Intuit Mailchimp.
Any products and services provided through this site are not supported or warrantied by The Joomla! Project, Open Source Matters, Inc. or Intuit Mailchimp.
Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.
Mailchimp® is a registered trademark of The Rocket Science Group.
Joomlamailer.com is not affiliated with or endorsed by The Joomla! Project™, Open Source Matters, Inc. or Intuit Mailchimp.
Any products and services provided through this site are not supported or warrantied by The Joomla! Project, Open Source Matters, Inc. or Intuit Mailchimp.
Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.
Mailchimp® is a registered trademark of The Rocket Science Group.