Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have 20 data in table. i wanna show it (split) in 5 data for each page/view (multiple page) so it means there are 5 data in every view.
and change the view page every 3 seconds.
it change view 1(data 1-5) into view_2(data 6-10) until view_4(data 16-20) in every 3 seconds without click. how could i solve it?
Posted
Comments
Prasad Khandekar 2-Jul-13 3:42am    
Hello,

You can use JavaScript to do this. Use code something like one shown below.

window.setInterval(updatePage, 3000);
function updatePage() {
// Put here the Logic to determine next view.
window.location.replace(newURL);
}

Regards,

1 solution

so far i tried use paging but it's need to be clicked to move another page, how could i make it auto?
this my scrips
- $per_page = 10;
$data['jk'] = $this->sikuma_model->selectQuery("select * from fakultas where is_deleted = 0 order by id limit $index_ke,$per_page");
$this->load->library('pagination');
-
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900