• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
loading image while fetching data

#1
[eluser]CocoMansur[/eluser]
Hi, I have this script code that i got from 1 of the tutorials regarding codeigniter with ajax, is it possible to have a loading image while it fetches data on the database?

Code:
[removed]
  $(".testiNext").click(function(){
   var form_data = {
    testiNext: '<?=$offsetNext;?>',
    };
  $.ajax({
   url: "<?=site_url('main/testi_ajax');?>",
   type: 'POST',
   data: form_data,
   success: function(testi){
    $("#testimonials").html(testi);
   }
   });
  return false;  
});
[removed]


Messages In This Thread
loading image while fetching data - by El Forum - 06-28-2012, 02:45 AM
loading image while fetching data - by El Forum - 06-28-2012, 03:06 AM
loading image while fetching data - by El Forum - 06-28-2012, 03:11 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.