html Campaign监视器ajax
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了html Campaign监视器ajax相关的知识,希望对你有一定的参考价值。
//Handler for Campaignmonitor form
handlerNewsletterSubmit: function() {
var $form = $('footer .newsletter form');
var $success = $form.find('.success');
var $error = $form.find('.error');
$form.submit(function(e) {
e.preventDefault();
$error.hide();
$.getJSON(this.action + "?callback=?",
$(this).serialize(),
function(data) {
if (data.Status === 400) {
$error.text(data.Message).show();
} else { // 200
$form.find('input').val('');
$success.show();
js.utilRemoveLightbox();
}
}
); // end getJson
}); // end submit
},
<form class="form-newsletter" action="http://xxxx.createsend.com/t/d/s/xxxx/" method="post" >
<h3>Newsletter</h3>
<div class="success">
Thankyou for signing up!
</div>
<div class="error">
Please check your email address is correct.
</div>
<input name="cm-xxxx-xxxx" type="email" placeholder="Email Address" required />
<button type="submit" value="Sign Up" name="submit">Sign Up</button>
</form>
以上是关于html Campaign监视器ajax的主要内容,如果未能解决你的问题,请参考以下文章
html 使用AJAX订阅Campaign Monitor列表,并在成功时订阅真正基本的动画
Campaign Monitor表单保持重定向
html Orange FR:BK Campaign Grabber
html 新面貌:Campaign Code Cookie Grabber
html Campaign Preheader(徽标+浏览器中的视图)
HTML 将背景图像应用于表格单元格 - 博客 - Campaign Monitor