you can call a function when web service returns the result of the
page that database already saved the info:

function otherajaxcall(pa,ra,me,ter){
  $.ajax({
     type: "POST",
     url: "someother.php",
     data: "age=25&gender=male",
     success: function(msg){
          alert(msg);
     }
}

$.ajax({
   type: "POST",
   url: "some.php",
   data: "name=John&location=Boston",
   success: function(msg){
       if(msg=='OK'){
           otherajaxcall(pa,ra,me,ter);
       }

   }
 });

Reply via email to