Welcome Guest, Not a member yet? Register   Sign In
Calling function after time interval and then passing data to view
#1

[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




Theme © iAndrew 2016 - Forum software by © MyBB