1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
$.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...'); } }); |