View Full Version : ddacordion wrong menu expands

04-22-2008, 01:48 PM
1) Script Title:

2) Script URL (on DD):

3) Describe problem:

Say I have two menu bars with these links:

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

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 :-)


04-22-2008, 02:36 PM
Attached a file so you can check the cookie problem I am talking about:

04-22-2008, 02:59 PM
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.

04-23-2008, 07:31 AM
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.

04-23-2008, 07:43 AM

04-23-2008, 08:04 AM
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!