CodeIgniter Forums
Calling function after time interval and then passing data to view - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: Calling function after time interval and then passing data to view (/showthread.php?tid=46497)



Calling function after time interval and then passing data to view - El Forum - 11-03-2011

[eluser]Unknown[/eluser]
hello,
In my code i need to call a controller function after a time interval and this function will return me data and only that data in my page will change. but what i am not getting is how can i only change particular part of my view also can any body suggest script for it.

Code:
//controller code
// findonline() which i want to call  periodically
$blogi['info']=$this->chats->findonline();
$this->load->view('chatty',$blogi);


what changes i will need to do in my view
i am using a <div> to show userdata how i can update this <div> periodically
thanks for help