I am trying to integrate MailChimps' standard html form into my website. However, my site has some jquery code that is running into problems with MailChimp's code.
The following code is part of the MailChimp embedded form:
<script type='text/javascript' src='//s3.amazonaws.com/downloads.mailchimp.com/js/mc- validate.js'></script>
<script type='text/javascript'>
(function($) {
window.fnames = new Array(); window.ftypes = new Array();fnames[0]='EMAIL';ftypes[0]='email';fnames[1]='FNAME';ftypes[1]='text';fnames[2]='LNAME';ftypes[2]='text';
}(jQuery));
var $mcj = jQuery.noConflict(true);
</script>
The '....mailchimp.com/js/mc-validate.js' conflicted with my Google API for jquery so I took out mailchimp's jquery activation.
My questions are:
- Do I have to have the mailchimp /mc-validate.js line in my .html code to run the form or can I rely on
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js'> </script>
?
- If I do remove the native mailchimp jquery line and rely on the
googleapi line, I run into problems with the
$mcj=jQuery.noConflict(true)
code.
Basic question is: Has anyone had experience with integrating Mail Chimp into their website and run into these type of issues with jQuery?
Looking forward to your answers.