No subject


Tue Nov 13 08:16:38 EST 2012


Geoffrey Myers

On Apr 30, 2013, at 3:26 PM, Geoffrey Myers <lists at serioustechnology.com> wrote:

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

That should have been:

<div id="LinkDiv">

> 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. 
> 
> --
> From my iPhone
> Geoffrey Myers
> 
> On Apr 30, 2013, at 1:19 PM, James Sumners <james.sumners at gmail.com> wrote:
> 
>> Since you can't seem to provide snippets with your questions...
>> 
>> http://stackoverflow.com/search?q=%5Bjavascript%5D+element+id+style
>> 
>> On Tue, Apr 30, 2013 at 1:09 PM, Geoffrey Myers
>> <lists at serioustechnology.com> wrote:
>>> Using JavaScript to toggle the style.display between 'block' and 'none'. Stashing the span I'd and current state of that elements style.display in a cookie. Problem is, when I retrieve the cookie and attempt to set the style.display value the id is not recognized as an id. I've tried:
>>> 
>>> arg.style.display
>>> 
>>> Where arg contains the span id value pulled from the cookie.
>>> 
>>> Suggestions?
>> 
>> 
>> 
>> -- 
>> James Sumners
>> http://james.roomfullofmirrors.com/
>> 
>> "All governments suffer a recurring problem: Power attracts
>> pathological personalities. It is not that power corrupts but that it
>> is magnetic to the corruptible. Such people have a tendency to become
>> drunk on violence, a condition to which they are quickly addicted."
>> 
>> Missionaria Protectiva, Text QIV (decto)
>> CH:D 59
>> 
>> _______________________________________________
>> Ale mailing list
>> Ale at ale.org
>> http://mail.ale.org/mailman/listinfo/ale
>> See JOBS, ANNOUNCE and SCHOOLS lists at
>> http://mail.ale.org/mailman/listinfo
> 
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo



More information about the Ale mailing list