Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Ajax Tabs Content Script

  1. #1
    Join Date
    Jun 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default 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!

  2. #2
    Join Date
    Jun 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    gentle knock....Anyone there?

  3. #3
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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.

  4. #4
    Join Date
    Jun 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Talking

    I will be eternally indebted to you...
    Can I wash your car? Or do the laundry?

  5. #5
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Hehe that won't be necessary. And don't thank me now, I haven't done anything yet.

  6. #6
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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.

  7. #7
    Join Date
    Jun 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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)

  8. #8
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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

  9. #9
    Join Date
    Jun 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Yes, I did do var enabletabpersistence=1.
    Thanks

  10. #10
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •