OK, it has come to my attention that this hasn't resolved the situation. This, though it might need some tweaking, should:
Get rid of the highlighted here:
Code:
<input name="submit" type="submit" class="newslettersubmitbtn" id="submit" onclick="MM_validateForm('email','','RisEmail');return document.MM_returnValue" value="SUBMIT" />
Place the following highlighted code where shown:
Code:
<script type='text/javascript' src='java/1.4.2.js'></script>
<script type='text/javascript' src='java/main.js'></script>
<script type='text/javascript' src='js/queryLoader.js'></script>
<LINK REL="SHORTCUT ICON" HREF="Images/favicon.ico">
<script type="text/javascript">
$(document).ready(function(){$("#nlcontact-toggle").click(function(){$("#newsletterpanel").slideToggle("slow");$(this).toggleClass("nlcontact-active");return false;});});
jQuery(function($){
$('#form1').submit(function(e){
MM_validateForm('email','','RisEmail');
if(document.MM_returnValue){
var page = this.action, pdata = {}, els = this.elements;
$.each(els, function(i, el){
if(el.name === 'email' || el.checked && el.name === 'subscribe'){
pdata[el.name] = el.value;
}
});
$.post(page, pdata);
$("#nlcontact-toggle").click();
}
e.preventDefault();
});
});
//fade
$(document).ready(function(){$('#page_effect').fadeIn(2000);});function MM_effectAppearFade(targetElement, duration, from, to, toggle)
{Spry.Effect.DoFade(targetElement, {duration: duration, from: from, to: to, toggle: toggle});}
</script>
</head>
<body>
<div style="visibili . . .
The code has been fairly thoroughly tested. But with AJAX it's hard to know exactly for sure what will happen on your host.
One thing I'm concerned about is the newsletter.php file. Since it probably has code on it to return to the calico9.com/site/ page, it may try to do so. This could cause problems. It depends though. Could I see the code on the newsletter.php page?
Bookmarks