Remembering Tab Selection on a List View Page

2 posts by 2 authors in: Forums > CMS Builder
Last Post: August 3, 2012   (RSS)

By sidcam - August 2, 2012

I have a list view page that lets users use Tabs to see the same group of records in different layouts (i.e. Tab 1 is a straight list, Tab 2 is a 4 across Gallery format that includes photos, etc).

Problem is, every time I click on a Previous or Next link to see another page of records it's automatically defaulting back to Tab 1 on reload.

Is there something I can add to the Previous or Next links that makes it remember the Tab state (without using cookies)?

Thanks, Sid

Re: [sidcam] Remembering Tab Selection on a List View Page

By Jason - August 3, 2012

Hi Sid,

There are a couple of ways of approaching this:

1- you append the tab number of the end of your previous and next links to maintain that information.

2-every time a tab is clicked, a jQuery call that saves the tab information is a $_SESSION variable.

Hope this helps get you started.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/