-
Ajax Tabs Content Script
Ajax Tabs Content script
http://www.dynamicdrive.com/dynamici...tent/index.htm
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!
-
gentle knock....Anyone there?
-
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.
-
I will be eternally indebted to you...:D
Can I wash your car? Or do the laundry?:)
-
Hehe that won't be necessary. And don't thank me now, I haven't done anything yet. :)
-
1 Attachment(s)
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.
-
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:
http://www.dynamicdrive.com/dynamici...tent/index.htm
http://www.dynamicdrive.com/dynamici...ntent/demo.htm
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)
-
No, it's actually not turned on on the DD script page. Did you remember to enable it inside the .js file:
Code:
var enabletabpersistence=1
-
Yes, I did do var enabletabpersistence=1.
Thanks
-
1 Attachment(s)
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.
-
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!