$.ajax({
type: "POST",
url: "http://example.com/save",
async: true,
data: "email="+email,
timeout: 20000,
success: function(html){
console.log(html);
},
error : function (xhr, status) {
console.log(xhr);
},
beforeSend : function () {
console.log('Waiting...');
}
});