View Full Version : Ajax Tabs Content Script

07-01-2007, 04:43 PM
Ajax Tabs Content script
Need: Persistence

How can I incorporate persistence into the Ajax Tab script? The non-Ajax tab script has this feature. If JS needs to be edited, will it be easy to do? I am a newb, but can tinker with code (hit or miss...repeated attempts...)
Thanks very much!

07-06-2007, 06:31 AM
gentle knock....Anyone there?

07-06-2007, 07:00 AM
I'll see if I can find time this weekend to take a stab at it. Apparently it's a little more involving than I had thought.

07-06-2007, 07:12 AM
I will be eternally indebted to you...:D
Can I wash your car? Or do the laundry?:)

07-06-2007, 07:28 AM
Hehe that won't be necessary. And don't thank me now, I haven't done anything yet. :)

07-09-2007, 06:42 AM
Here you go, just replace the original .js file with the attached below, and refer to the extra variable near the top. FYI the official script on DD has also just been updated with the new .js file.

07-10-2007, 06:10 PM
Thanks very much for working on this over the weekend.
However, I couldn't get it to work, been trying different things for the last 2 days. I don't see any cookie being set in any directory. I also tried to give each li item a unique id, which didn't help.
Persistence doesn't work for the DD Ajax Tab pages:
Is it turned ON for these pages? This way, I can compare and check for obvious goofups on my page...
Maybe I am doing something wrong...
Could you please help me out?
(I did remember to turn var enabletabpersistence=1)

07-10-2007, 07:36 PM
No, it's actually not turned on on the DD script page. Did you remember to enable it inside the .js file:

var enabletabpersistence=1

07-11-2007, 04:13 AM
Yes, I did do var enabletabpersistence=1.

07-11-2007, 08:44 AM
Ah ok I found the problem, which was a bug in the new .js file that causes the persistence to not work under certain settings. Use the new one below instead, which is now also available on the DD script page as well.

07-12-2007, 04:35 PM
Yesssssss, it works now :D
Works on FF, IE, Opera.
Very much appreciate the effort and response.
This actually helps me a lot, and am sure to a lot of others too.
Thanks very much! Your site rocks!