Click here to Skip to main content
11,573,618 members (60,902 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Javascript
Hi,

can you please explain how to cater for pagination in Javascript.
I am trying to create a table in Javascript and want to iterate using single rows and display 5 rows on a single page. My table has 15 values.

i know the logic to display all the 15 values on a single page, but how do i do it 5 rows per page. how do i read values and write them on pages 5 rows using pagination.

Thanks,
Tushar.
Posted 15-Mar-13 8:49am
Comments
Sergey Alexandrovich Kryukov at 15-Mar-13 14:56pm
   
I don't think pure client-side pagination makes a whole lot of sense without server side. With big database and big volume of query results, pagination can be a great tool. Do you have such thing?
—SA
Prasad Khandekar at 15-Mar-13 16:53pm
   
Hello Tushar,

I totally agree with Sergey. For a small number of data rows (say up to 100), you can use FlexiGird (http://flexigrid.info/), Data Tables (www.datatables.net/) or SlickGrid (https://github.com/mleibman/SlickGrid). You may also experience a little performance degradation with IE browser.

Regards,

Regards,
tusharmathankar at 16-Mar-13 17:02pm
   
I want to do pagination on 100 data so plz tell me how i do this.

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

  Print Answers RSS


Advertise | Privacy | Mobile
Web03 | 2.8.150624.2 | Last Updated 15 Mar 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100