• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ajax refresh

#1
[eluser]Patrick Reck[/eluser]
Hello! I'm trying to update a DIV box every minute. I've made a JS function which is getting called every minute as it's supposed to.

Now, how do I get AJAX to update the DIV box using a controller?

#2
[eluser]Patrick Reck[/eluser]
This did the trick

[code]
         $.ajax({
           type: "POST",
           url: "<?php echo site_url(); ?>mail/ajaxupdate/5",
           data: dataString,
 
           success: function(data){
$("#mail_container").html(data);
           }
 
         });


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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