$.ajax method ,
$.ajax({ type: 'POST', // post , get url: "file.php", data: {name: "Rajeev", time: "2pm"}, success: function(result,status,xhr){ alert(result); alert(status); alert(xhr); }, error: function(xhr,status,error){ alert(status); } });