[thelist] JavaScript + CSS to Toggle Menu List

ibn Ezra ibnezra at mac.com
Wed Aug 16 14:02:34 CDT 2006


Hi...
Thanks for the advice... I wound up get a friend of a friend to help  
me out (it had to do with knowing which directories to look in). I've  
already posted the updated js file to the server if you're interested.

Thanks again,
-iE


.................................................

ibn Ezra
mailto: ibnezra at mac.com

.................................................




On Aug 12, 2006, at 18:28 PM, Lee kowalkowski wrote:

> On 11/08/06, ibn Ezra <ibnezra at mac.com> wrote:
>> Help!
>> (and even better close the others in the menu -- beyond the scope of
>> what I have so far) and use the cookies to preserve the current state
>> so that the menu doesn't close back up again when loading a new page.
>>
>> What am I doing wrong?
>
> The cookie data is not being managed properly (by the JS).  The
> getCookie function looks alright, but when you do a document.cookie =
> "news=show".  It doesn't replace "news=hide", this results in a cookie
> with both "news=show" and "news=hide" inside.  Perhaps a
> document.cookie="news=;expires=-1" is required before a
> document.cookie="news=show".  Not sure why that's happening, sorry.
>
> The getCookie function prefers the "news=hide" because it starts with
> a semi-colon, and it looks for this first.
>
> Because you only want one "sheet" open at any time, just put one value
> in your cookie, "show=<<id>>".
>
> -- 
> LK
> -- 
>
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !




More information about the thelist mailing list