Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Persist state on accordian glossy menu

  1. #11
    Join Date
    Jul 2008
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    The extra initialisation is because I need to create a second level accordian menu within the first as the level. I did not see another way of doing it. If you have a better way please feel free to enlighten me as I am useless when it comes to javascript.

    explains the two alerts.

    Still though when viewed in IE6 without the erroneous code the menu does not persist when clicking a sub menu item.

  2. #12
    Join Date
    Jul 2008
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Any more ideas?

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

    Default

    Ok, I tried saving a local copy of your page, and ran some more tests in IE6. Now, this could be due to my specific copy of IE6, which is a development copy (part of multiple IE versions on the same PC), but in that browser, it's simply not allowing any cookie to be set, period. To confirm if that's in fact the issue for you as well, replace the alert() message you had added in red with the below in red instead:

    Code:
    				expandedindices=(expandedindices.length==0)? '-1c' : expandedindices //No contents expanded, indicate that with dummy '-1c' value?
    				document.cookie="mycookie=success;"
    				alert(document.cookie)
    Now reload the page- do you get the value "mycookie=success;" alerted?
    DD Admin

  4. #14
    Join Date
    Jul 2008
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    OK in FF3 i get an alert box that says success. In IE6 I get a blank alert box appear. No text showing at all. In IE7 I get success shown.

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

    Default

    That's the problem then- in IE6, at least your copy and mine (which isn't fully standalone btw), cookies are being rejected period. Try and check your browser settings to see if you have cookies disabled in IE6.
    DD Admin

  6. #16
    Join Date
    Jul 2008
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    aha, we getting there. I have checked the settings on my IE6 and set the security to low and added the site as a trusted site. IE6 is still not keeping the menu open.

    Is there somewhere I can view the cookies that IE6 has accepted to see if there is one there??

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
  •