Hi there,
I’m pasting HTML code that contains Javascript in the shortcoder.
It’s a snippet from Mailchimp to embed a sign up form on my blog. I get a 500 internal server error when I try to save my shortcode with the original code. I realised that when I remove the javascript <script> tags, I can update the shortcode and it works fine. That Javascript snippet is the validation of the form fields basically. This is it:
<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[1]=’MMERGE1′;ftypes[1]=’text’;fnames[0]=’EMAIL’;ftypes[0]=’email’;}(jQuery));var $mcj = jQuery.noConflict(true);</script>
Any ideas on how I can make this HTML + Javascript work? Is this a bug?
Thanks.