PDA

View Full Version : Remember Tab in Ajax Tabs Content script?



badbandit
01-30-2007, 06:14 PM
1) Script Title: Ajax Tabs Content script

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/index.htm

3) Describe problem: Is it possible to remeber the last selected tab with a cookie, like it does in Tab Content Script?

one of the biggest reason, why i like Tab Content Script is, that it sets a cookie to remember the last selected tab. why is this not implemented in ajax tabs content? does it not work?
i am very bad in javascript and i do not think, that i can copy the "remember-function" into ajax tabs.

could someone help me please?

jscheuer1
01-31-2007, 06:27 AM
It can be done but, hasn't (as far as I know). I'll try to get to it. We've already worked out loading a specific tab, so it would just be a matter of setting up the cookie code and (ugh) testing it. In case you would like to see the first half of the solution, look here:

http://www.dynamicdrive.com/forums/showpost.php?p=48584&postcount=3

badbandit
01-31-2007, 08:58 AM
sounds good!

is ajax tabs working that different, that the code for setting a cookie and selecting a specific tab is a problem? why can't one "just" copy the code from one script to the other? (i can't of course, because i am a javascript greenhorn :-) )