Results 1 to 6 of 6

Thread: ddacordion wrong menu expands

  1. #1
    Join Date
    Apr 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default ddacordion wrong menu expands

    1) Script Title:
    Accordion

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...daccordion.htm

    3) Describe problem:

    Say I have two menu bars with these links:

    Menu0
    link1: /blabla/index1.html
    link2: /blabla/index2.html
    link3: /blabla/index3.html

    Menu1
    link1: /blabla/index4.html
    link2: /blabla/index5.html
    link3: /blabla/911/index3.html


    If I press menu1 link3, it expands as it should. But when I open menu0 and menu1 collapses, and then press menu0 link1, then menu1 will expand (even though I also put expandable=0).

    This is because of the path in the cookie I guess?

    Any way around it?

    Because even though I use the "expanded" get variable, it will show the wrong menu.

    Maybe I could manually read the expanded variable and manually add a javascript that expands the correct one? Because as it is now it doesn't work very well when links aren't from the same folders.

    Very nice work with the script, I love it and it's just what I needed.... just need to fix the small bugs now :-)

    Regards,
    Mikael
    Last edited by igen; 04-22-2008 at 02:12 PM.

  2. #2
    Join Date
    Apr 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Attached a file so you can check the cookie problem I am talking about:

  3. #3
    Join Date
    Apr 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Also - if any dd administrator would like access to my script page, I can give you login information in a PM, just say if you need it to understand my problem better.

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

    Default

    Hmm sure, please pm me a link to the problem page. I can't promise I'll have time to look at it, but I'll try.

  5. #5
    Join Date
    Apr 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    edited
    Last edited by igen; 04-23-2008 at 08:03 AM.

  6. #6
    Join Date
    Apr 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I fixed it with the get variable, had spelled it wrong, how embarrasing Done it right on all the other pages grrr hehe....

    Sorry for taking up your time and thanks for a very nice script!

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
  •