[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] More JavaScript
- Subject: [ale] More JavaScript
- From: lists at serioustechnology.com (Geoffrey Myers)
- Date: Tue, 30 Apr 2013 15:26:31 -0400
- In-reply-to: <CAAt=rgAHuxE-Rxz8rgTUR5Qpa86O+nT3d4f8g_60ditzNKLLcw@mail.gmail.com>
- References: <[email protected]> <CAAt=rgAHuxE-Rxz8rgTUR5Qpa86O+nT3d4f8g_60ditzNKLLcw@mail.gmail.com>
Quite difficult to send code from my phone.
Thanks for the link. I actually tried one of the suggestions from the link. I can try to elaborate on the actual code.
So I have a <div id=SPANID>
I can call an existing JavaScript function like this:
InvertView('o', LinkDiv)
And it will set the style.display appropriately. But, if I have a cookie named LinkDiv with a value of 'o'
And call:
InvertView('o', LinkDiv)
Will fail.
InvertView() loops through the arg list doing this:
arguments[i+1].style.display =
(Arguments[i] == 'o') ? "block" : "none"
Fails with: Arguments[i+1].style is undefined.
--