Results 1 to 4 of 4

Thread: Switch Menu not collapsing

  1. #1
    Join Date
    Jul 2006
    Posts
    142
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default Switch Menu not collapsing

    1) Script Title: Switch Menu

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

    3) Describe problem:

    So, I am using the this menu and it is working fine. But when I go back to the home page the menu is still expanded. It doesn't collapse. How do I re-initialize the menu?

    Thanks

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

    Default

    Looks like the same problem as this user's: http://www.dynamicdrive.com/forums/s...ad.php?t=37852
    DD Admin

  3. #3
    Join Date
    Jul 2006
    Posts
    142
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    Thanks for your reply. See this is actually not what I had in mind. I want the menu to be expanded when in the sub-menu pages but want it to collapse when in the index page. So, obviously it has to be page dependent. I could do it the hard way by making the menu for each page (the way usually it is done!) but I want a smart menu to recognize the page and stay expanded when needed. Am I making sense? I have switched between local and sitewide but not what I want.

    Thanks
    Last edited by neo_philiac; 10-24-2008 at 01:10 PM.

  4. #4
    Join Date
    Jul 2006
    Posts
    142
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    OK guys!

    I think I have figured out a way . All my pages are in php and what I have done is pass the 'persistmenu' with every page every time I call the javascript. so for index persistmenu=no and for sub-menu persistmenu=yes . Everything works perfectly except for the first time. The first time I click the sub-menu it collapses but after that it stays expanded when in the submenu but collapses when I click the index or any other page. Any idea????

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
  •