[eluser]d_ni[/eluser]
[quote author="Patrick Spence" date="1351910214"][quote author="d_ni" date="1351904973"]Hi to all
I'm trying to use the pagination library with a jquery tabs, but I don't know how to use more than one pagination at same page (now all tabs are paginated with the same page, if the tab1 is at page 2, all tabs are in page 2).
Any idea?
I think it is the same as to have more than one <div> paginated.
Thanks!
[/quote]
You could always split render the returned data from your data query and load that into tabs..
You aren't at the mercy of the pagination library, all it really does for you is render the links right?
So, if you want, for example, 20 rows of data in each tab.. and you want to have say 5 tabs on a page, just grab 100 rows per request, and chunk out 20 per tab.
Which brings up the question, if you are loading data into tabs, why do you need the pagination library? Unless you want to load an actual real page into each tab, and your data volume is low enough, you wouldn't even need pagination.
Another option, and probably easier, would be to configure the links to be the right CSS layout to -look- like tabs..so that it emulates the tabs but in reality just switches pages like the pagination library does normally.[/quote]
Hi,
Thanks for your fast reply.
This is not the idea, I'm trying to paginate diferent data (tables) in each tab, one example may be cars: first tab; electric cars, second tab; diesel, etc and I need this tabs paginated.
Thanks!