Thursday, March 15, 2012

$.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);
  }
 
  });

No comments:

Post a Comment

If you Satisfied , Please Leave a comment