Advertisement
GWibisono

contoh post aja

May 11th, 2015
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. rand=222;
  2.         data={type:"search",id:words};
  3.             link='index2.php?option=com_rs&l=l&t=tarif&type=search';
  4.             link=link+'&rand='+rand;
  5.         $.post(link,data,function(res){
  6.             //console.log(res);
  7.             $("#listItem").empty().html(res);
  8.         });
  9. //=============ajax
  10.     var request = $.ajax({
  11.      url: "index2.php?option=com_rs&view=pat&t=pasien&l=l",
  12.      type: "POST",
  13.      data: data,
  14.      dataType: "json",
  15.      success: function(msg) {
  16.         $("#listItem").empty().html(msg.res);
  17.      }
  18.     });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement