-
-
Save mkdynamic/5754791 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 1. Take your Campaign Monitor subscribe form as generated from within your account: --> | |
<form action="http://myaccount.createsend.com/t/r/s/aljhk/" method="post" id="subForm"> | |
<div> | |
<label for="name">Name:</label><br /><input type="text" name="cm-name" id="name" /><br /> | |
<label for="aljhk-aljhk">Email:</label><br /><input type="text" name="cm-aljhk-aljhk" id="aljhk-aljhk" /><br /> | |
<input type="submit" value="Subscribe" /> | |
</div> | |
</form> | |
<!-- 2. Add some JavaScript --> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> | |
<script type="text/javascript"> | |
$(function () { | |
$('#subForm').submit(function (e) { | |
e.preventDefault(); | |
$.ajax({ | |
url: this.action, | |
method: this.method, | |
dataType: "jsonp", | |
data: $(this).serialize(), | |
success: function(data) { | |
alert("Success: " + data.Message); | |
}, | |
error: function(jqXHR, textStatus, errorThrown) { | |
alert("Error: " + textStatus + ", " + errorThrown); | |
} | |
}); | |
}); | |
}); | |
</script> | |
<!-- 3. You have an AJAX subscribe form! --> |
any one can pls help me out of this problem
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
HI am getting success response. But where i can see the my subscription details.
My account is "resmed10", if am using my account but still where it is saving. i want to see the details.
my list id is "7c7a6087b0e450ad72b38be83098e271".