I am having a similar problem.
I thought it was a conflict with the slideshow, as if I have cmc enabled the slideshow stops working, which I have pinned down to removing this from default.php:
$script = 'window.addEvent("domready", function() {
var options = {
language : {
"updated" : '.json_encode(JText::_( $params->get( 'updateMsg' ))) .',
"saved" : '.json_encode(JText::_( $params->get( 'thankyou' ) )) .'
},
spinner : "spinner-'.$moduleId.'"
}
new cmc("cmc-signup-form-' . $moduleId . '", options);
});';
$document->addScriptDeclaration($script);
in which case slideshow starts working again.
then I noticed I was getting similar errors on signup submit: "{"html":"Invalid Email Address: ","error":true}", etc. and no processing but just a raw page.
I have stripped it down to just this for a head script load and am still having problems:
<script src="/media/system/js/mootools-core.js" type="text/javascript"></script>
<script src="/media/system/js/core.js" type="text/javascript"></script>
<script src="/media/system/js/caption.js" type="text/javascript"></script>
<script src="/media/system/js/mootools-more.js" type="text/javascript"></script>
<script src="/media/mod_cmc/js/cmc.js" type="text/javascript"></script>
<script type="text/javascript">
window.addEvent('load', function() {
new JCaption('img.caption');
});
window.addEvent("domready", function() {
var options = {
language : {
"updated" : "You were already subscribed to this list. Your settings have been updated. Thank you!",
"saved" : "Thank you! Please check your email and confirm the newsletter subscription."
},
spinner : "spinner-95"
}
new cmc("cmc-signup-form-95", options);
});
</script>
<script type="text/javascript">
(function() {
var strings = {"THANK YOU! PLEASE CHECK YOUR EMAIL AND CONFIRM THE NEWSLETTER SUBSCRIPTION.":"Thank you! Please check your email and confirm the newsletter subscription.","YOU WERE ALREADY SUBSCRIBED TO THIS LIST. YOUR SETTINGS HAVE BEEN UPDATED. THANK YOU!":"You were already subscribed to this list. Your settings have been updated. Thank you!"};
if (typeof Joomla == 'undefined') {
Joomla = {};
Joomla.JText = strings;
}
else {
Joomla.JText.load(strings);
}
})();
</script>
maybe it is a variable or the document.id or something? can you wrap your function somehow, would that help? I am looking into it but I am not a js expert so thanks for any help. I'm using J3.1 and the 1.2.1 cmc. the site does not have ecommerce.