Yours Remote Email
by AaronLayton
HTML
<button class="js-test-json">Test</button>
JavaScript
$(".js-test-json").on("click", function(){
$.ajax({
// The source URL
url: "http://www.yoursclothing.co.uk/ecommerce/ajax/signup.aspx",
// Tell jQuery you're doing JSON-P
data: {
name: "Aaron",
email: "[email protected]"
},
success: function(data){
console.log("Success");
console.log(data);
},
failure: function(data){
console.log("Failure");
console.log(data);
}
});
});