Results 1 to 3 of 3

Thread: Accordion Menu script (v1.7.1) persist state

  1. #1
    Join Date
    Aug 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Accordion Menu script (v1.7.1) persist state

    1) Script Title:
    Accordion Menu script (v1.7.1)

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

    3) Describe problem:

    Hi

    I am working on a new shopping site (home server setup) here: http://mark-friends-photos.co.uk/photoshopsuk/. I have incorporated the Accordian Menu but the persist function isn't working. If you open say 'Nikon' on the home page and then use such a link as this: http://mark-friends-photos.co.uk/pho...ddb=46&pid=735 you will be able to see that the menu is closed again. Any idea why?

    PS. I am incorporating the menu using ajax include. Could that be the problem?

    UPDATE: The persist is working as long as I don't load the menu contents. Once I enter any menu content the persist is broken. Conflicting cookies?

    Regards
    Mark
    Last edited by Mkjones; 08-03-2011 at 11:22 AM.

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

    Default

    Try removing the accordion menu script from pages on your site that do not actually show the menu, such as http://mark-friends-photos.co.uk/pho...&nc=155&nb=201 My suspicion is that on those pages, the script is still setting the persistence cookie for some reason, causing that setting to override the previous page's persistence setting. I understand it may not be possible for you to target individual pages on your site when removing the script- if so, let me know.
    DD Admin

  3. #3
    Join Date
    Aug 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by ddadmin View Post
    Try removing the accordion menu script from pages on your site that do not actually show the menu, such as http://mark-friends-photos.co.uk/pho...&nc=155&nb=201 My suspicion is that on those pages, the script is still setting the persistence cookie for some reason, causing that setting to override the previous page's persistence setting. I understand it may not be possible for you to target individual pages on your site when removing the script- if so, let me know.
    With your solution in mind I altered the site so that the menu shows at all times. It works! I used nocript on the subcategory menu so that it still is accessible by crawlers.

    Thanks

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
  •