CodeIgniter Forums
real time update? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: real time update? (/showthread.php?tid=17949)



real time update? - El Forum - 04-20-2009

[eluser]billie joe[/eluser]
guys i have this idea on my mind so that my blog doesnt use refresh anymore. so it means that i has to be update realtime... can u share me some ideal code for this one so that i will have the idea for this one?


thanks


real time update? - El Forum - 04-20-2009

[eluser]ConnorD[/eluser]
Well, you will have to use a javascript toolkit to do an ajax request that is updated every so often. My preferred toolkit is jQuery. To update every few seconds, you would just use the javascript setTimeout() function to do this.

I think that should answer your question.