CodeIgniter Forums
Codeigniter Question - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Codeigniter Question (/thread-59628.html)



Codeigniter Question - El Forum - 10-29-2013

[eluser]razerone[/eluser]
Does codeigniter have away of refreshing a div every few seconds?

I am trying to refresh my div with javascript but not working out well.

the div I am trying to refresh is .alert with my bootstrap.


Codeigniter Question - El Forum - 10-29-2013

[eluser]rappasoft[/eluser]
You can use javascript just fine:

Code:
window.setInterval(function(){
  $('#abc').load('PHPFile.php');
}, 1000);