hi,
i'm changing an existing email signup form to use the feedburner signup (opens in a popup), but want to keep the existing one in place aswell. i was hoping this would work, but it display a blank page. the existing signup script returns complete page containing yet another form.
$(document).ready(function() {
$('#subscribe_form').submit(function() {
$.ajax({
type: 'post',
url: '/mailing-list/',
data: 'email='+$('#email').val()+'&more=values',
dataType: 'html',
success: function(data) {
$(document).html(data);
}
});
return true;
});
});
here's the new form with the original one commented that also needs to be posted to...
<form id="subscribe_form" action="http://feedburner.google.com/fb/a/mailverify" method="post" target="popupwindow" onsubmit="window.open('http://feedburner.google.com/fb/a/mailverify?uri=xxxx', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true">
<input type="text" title="Your Email" size="15" id="email" name="email"/>
<input type="hidden" value="xxxx" name="uri"/>
<input type="hidden" name="loc" value="en_US"/>
<input type="submit" value="Subscribe" />
</form>
<!--
<form action="/mailing-list/" method="post" id="mailingformmini">
<input name="email" type="text" title="Your Email" size="15" />
<input name="subscription" type="radio" id="subscription_0" value="subscribe" /> Subscribe
<input name="subscription" type="radio" id="subscription_1" value="unsubscribe" /> Unsubscribe
<input name="" type="submit" value="Go" />
<input type="hidden" name="elist" value="elist" />
</form>
-->
any help would be good!
cheers,
rob.