Welcome Guest, Not a member yet? Register   Sign In
pagination within grouped data
#1

[eluser]Hoopoe[/eluser]
This is an "in theory" question.

Take some tabs A, B with sub-tabs a1, a2 and b1, b2

a1, a2 are records, belonging to the category A: similarly for b1 etc.

Details are the values of the fields in each record.

A
- a1 > details
- a2 > details
B
-b1 > details
-b2 > details

I can envisage implementing pagination in each category i.e if total grouped records > greater than per-page, then show pagination as another <li> element.

The question I have is as follows:
If category A has enough records to require pagination, and I click the links to page#2 of the A records, what happens if I click on tab B if category B has no page#2 ?

Clicking on tab B would surely display an error.

My assumption is that I'd need some Javascript to do the following: whenever clicking on a category tab (A, B) rather than a record tab (a1, b1 etc), set the $start value for pagination to 0.

I'm aware this question is a bit abstract but would appreciate any thoughts anyone may have on the subject.

Hoopoe


Messages In This Thread
pagination within grouped data - by El Forum - 06-17-2011, 11:22 AM
pagination within grouped data - by El Forum - 06-17-2011, 06:08 PM
pagination within grouped data - by El Forum - 06-18-2011, 10:33 AM
pagination within grouped data - by El Forum - 06-18-2011, 03:50 PM
pagination within grouped data - by El Forum - 06-20-2011, 12:18 AM
pagination within grouped data - by El Forum - 07-16-2011, 12:28 PM
pagination within grouped data - by El Forum - 07-16-2011, 06:23 PM
pagination within grouped data - by El Forum - 07-17-2011, 02:55 AM
pagination within grouped data - by El Forum - 07-18-2011, 02:08 PM



Theme © iAndrew 2016 - Forum software by © MyBB