tags:

views:

28

answers:

2

Using Jquery ajax post how would i show a message with what data is about to be posted.

$.ajax({
  beforeSend: function (request) {
    //something here
  },
  type: "POST",
  url: "delete/process.php",
  data: "delcustomerid="+ delcustomerid,
  success: refreshTable
});
+3  A: 

Use firebug and console.log(request)

pygorex1
A: 
$.ajax({ 
  beforeSend: function (request) { 
    alert("delcustomerid="+ delcustomerid);
  }, 
  type: "POST", 
  url: "delete/process.php", 
  data: "delcustomerid="+ delcustomerid, 
  success: refreshTable 
}); 
Mark Schultheiss