-
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.
-
-
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?
-
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.
-
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.
-
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??