[ale] More JavaScript

Geoffrey Myers lists at serioustechnology.com
Wed May 1 08:26:20 EDT 2013


On Apr 30, 2013, at 6:58 PM, Jim Lynch <ale_nospam at fayettedigital.com> wrote:

> On 04/30/2013 03:26 PM, Geoffrey Myers wrote:
>> 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.
> Maybe test?
> 
> if(arguments[i+1].style != undefined) {
>    arguments[i+1].style.display =
>    Arguments[i] == 'o') ? "block" : "none"
> }

All values are take directly from the code. They are known to be valid. It's not recognizing that the passed value is the proper type. 



More information about the Ale mailing list