Forum Moderators: open

Message Too Old, No Replies

how to keep tab persistence?

         

lli2k5

1:32 am on Sep 13, 2006 (gmt 0)

10+ Year Member



Is there an easy way to keep persistance on refresh with tabs?

I know that if you href to an anchor, upon refresh, it reloads at the anchor.

How would you keep persistence on a tab upon refresh?

penders

10:49 am on Sep 13, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



This is like a paged-tab (that just looks like a tab) you've created yourself to display different content?

A couple of ideas maybe to... [1] store a cookie, depending on which tab has been picked, and check for that cookie when the page loads, and change accordingly.

[2] Or, have the option of a permalink.... a url of the form "/mypage.php?mytab=2" and check for this when the page loads. You could even link to this URL when they click on a tab. You're essentially storing something in the URL.

Either way, you need to have something stored somewhere.

daveVk

12:29 pm on Sep 13, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Forms are a usefull way to achieve per page persistance, use input type=hidden