首页 文章

AWEBER javascript集成

提问于
浏览
1

我有2个原始的aweber html代码,它们在不同的帐户中 . 现在我想为这两个原始代码提供1个注册表单 . 意味着当有人在我的表单上注册时,该电子邮件应该保存在我的两个列表中 . 但我对如何整合这两个代码有疑问 . 当我删除1个表单时,它仅适用于1个列表,但是当我整合两个表单时,它不会在两个列表中保存任何电子邮件 .

继承我的代码,对不起我的可怜的编码我刚接触javascript我努力解决这个问题希望有人可以帮助我 .

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<!--1st-->
<script language="javascript">
function copy_fields(){
    <!--document.getElementById('name1').value = document.getElementById('name').value;
    document.getElementById('from1').value = document.getElementById('email').value;
}
function validate(){
    var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; 
    if((document.submail.email.value=='')||(document.submail.email.value=='Email Address'))
    {alert('Please Enter Email Address'); return false;}
    if (!filter.test(document.submail.email.value)) 
    {alert('Please Enter A Valid Email'); return false;}    

    document.getElementById('sub9').className='gray_out';
    document.getElementById('sub9').disabled='true';    

    copy_fields();
    document.form2.submit();
    setTimeout('document.submail.submit()',3000);   
}
</script>
<style type="text/css">
.gray_out {
    filter:alpha(opacity=40);
    -moz-opacity:.40;
    opacity:.40;
}
</style>
<!--END 1st-->

<!--2nd-->
<script language="javascript">
function copy_fields1(){
    <!--document.getElementById('name1').value = document.getElementById('name').value;
    document.getElementById('from1').value = document.getElementById('email').value;
}
function validate1(){
    var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; 
    if((document.submail.email.value=='')||(document.submail.email.value=='Email Address'))
    {alert('Please Enter Email Address'); return false;}
    if (!filter.test(document.submail.email.value)) 
    {alert('Please Enter A Valid Email'); return false;}    

    document.getElementById('sub9').className='gray_out';
    document.getElementById('sub9').disabled='true';    

    copy_fields1();
    document.form1.submit();
    setTimeout('document.submail.submit()',3000);   

}
</script>
<style type="text/css">
.gray_out {
    filter:alpha(opacity=40);
    -moz-opacity:.40;
    opacity:.40;
}
</style>
<!--END 2nd-->

</head>
<body>

<form name="submail" method="post" action="http://empowerauthoritypro.com/commission-loophole-ninja" >
<input type="hidden" name="go" value="now" />
    <!--    First Name:
<input id="name" type="text" name="name" value="First Name" onclick="if(this.value=='First Name') this.value=''" class="text-field" />
--> Email:
<input id="email" type="text" name="email" value="Email Address" onclick="if(this.value=='Email Address') this.value=''" class="text-field" /> <!--<a href="#" onclick="return validate();" id="sub9">Optin Now</a>--> <input type="button" id="sub9" value="Submit" onClick='window.open(validate1())' /> </form> <!--1st has email requirement only--> <form name="form2" method="post" action="http://www.aweber.com/scripts/addlead.pl" target="iframe" style="display:none"> <input type="hidden" name="meta_web_form_id" value="1817364894" /> <input type="hidden" name="meta_split_id" value="" /> <input type="hidden" name="listname" value="dummylistshaq" /> <input type="hidden" name="redirect" value="http://www.aweber.com/thankyou.htm?m=default" /><input type="hidden" name="meta_adtracking" value="ninjatest" /> <input type="hidden" name="meta_message" value="1" /> <input type="hidden" name="meta_required" value="email" /> <input type="hidden" name="meta_tooltip" value="" /> <div style="display:none"> <img src="http://forms.aweber.com/form/displays.htm?id=jByM7MxsLBycLA==" alt="" width="1" height="1" /> </div> <input type="text" name="email" id="from1" value="" size="20"> </form> <iframe name="iframe" style="display:none"></iframe> <!--END 1st--> <!--2nd has name and email requirement but i have compromise the name to be hide--> <form name="form1" method="post" action="http://www.aweber.com/scripts/addlead.pl" target="iframe" style="display:none"> <input type="hidden" name="meta_web_form_id" value="1376972149" /> <input type="hidden" name="meta_split_id" value="" /> <input type="hidden" name="listname" value="optinninja1" /> <input type="hidden" name="redirect" value="http://www.aweber.com/thankyou.htm?m=default" /><input type="hidden" name="meta_adtracking" value="ninjaoptin" /><input type="hidden" name="meta_message" value="1" /> <input type="hidden" name="meta_required" value="name,email" /> <input type="hidden" name="meta_tooltip" value="" /> <div style="display:none"> <img src="http://forms.aweber.com/form/displays.htm?id=jMzsbJzsTIwsnA==" alt="" width="1" height="1" /> </div> <input type="hidden" name="name" id="name1" value="" size="20"> <input type="text" name="email" id="from1" value="" size="20"> </form> <iframe name="iframe" style="display:none"></iframe> <!--END 2nd--> </body> </html>

1 回答

  • 1

    将多个服务与AWeber列表集成的更好(和AWeber支持)方法是使用AWeber API .

    另一种可能是在您自己的站点上设置PHP页面,将其设置为您的AWeber表单的“谢谢页面”,并编写您的PHP代码以利用Pass Subscriber Data功能:

    https://help.aweber.com/entries/21775518-how-do-i-pass-form-data-to-my-thank-you-pages

    关于你想要的工作流程,我有点困惑 . 您提到提交两个AWeber列表,但您的代码中还有第三个表单发布到第三方 .

    我强烈建议您与AWeber客户解决方案取得联系,他们将能够更全面地满足您的需求 . 只需发送电子邮件至help@aweber.com或访问https://www.aweber.com/contact-us.htm,团队成员将深入了解 .

相关问题