Regarding multiple Pagination

Reply

Join Date: Aug 2008
Posts: 31
Reputation: srilakshmitr7 is an unknown quantity at this point 
Solved Threads: 2
srilakshmitr7's Avatar
srilakshmitr7 srilakshmitr7 is offline Offline
Light Poster

Regarding multiple Pagination

 
0
  #1
Sep 23rd, 2009
I thought of implementing multiple pagination concept in a single page.I applied pagination concept but instead of changing only one set of records it gets reflected to another set of records.Can anyone solve this.
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 55
Reputation: wilch is an unknown quantity at this point 
Solved Threads: 9
wilch wilch is offline Offline
Junior Poster in Training

Re: Regarding multiple Pagination

 
0
  #2
Sep 24th, 2009
Well, we can't solve what we can't see. Give us the logic of the code or rather the code itself then we might determine whether we can/not solve it
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 31
Reputation: srilakshmitr7 is an unknown quantity at this point 
Solved Threads: 2
srilakshmitr7's Avatar
srilakshmitr7 srilakshmitr7 is offline Offline
Light Poster

Re: Regarding multiple Pagination

 
0
  #3
Sep 24th, 2009
The logic is to display categories and subcategories under that categories.I want pagination to those subcategories which looks like

cat1
subcat1
subcat2

// pagination code//

cat2
subcat1
subcat2

// pagination code//
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 55
Reputation: wilch is an unknown quantity at this point 
Solved Threads: 9
wilch wilch is offline Offline
Junior Poster in Training

Re: Regarding multiple Pagination

 
0
  #4
Sep 24th, 2009
Well, i have developed something similar tot that before.
What you first need is the pagination code. Then add to each url of the pagination links extra variables that maintain the current state of every category & subcategory being displayed at that moment.

e.g.
Category A has the following
{
link1
- has state 20
- url (category=a&link=1&B_x=3&B_y=14&B_z=24)

link2
- has state 10
- url(category=a&link=2&B_x=3&B_y=14&B_z=24)
}

Category B has the following {
link1
- has state 3
- url (category=b&link=1&A_x=10&A_y=20)

link2
- has state 14
- url(category=b&link=2&A_x=10&A_y=20)

link3
- has state 24
- url(category=b&link=3&A_x=10&A_y=20)
}

In the example what i am trying to say is, the links in each category maintain the current state of what's currently displayed in the other category, this way when the page reloads, you use the the variables you passed in the url to maintain the other categories/subcategories.

So by saying e.g.
in category b link 3
url(category=b&link=3&A_x=10&A_y=20) means pass the variables category=b and link=3, to the pagination.php file for processing, and then when you reload the results page maintain the results from Category A as:
link 1 (aka A_x) has state 10
link 2 (aka A_y) has state 20.

This way we have maintained what was previously displayed in Category A, but only altered what's displayed in B.

If you need more elaboration i can provide.
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC