Thanks Dave, I'm still not sure why my visible() comparison wrapper was 
registering as null when i originally first attempted to perform the 
functions, because that looks something like what I first tried.

Thanks again to Jason suggestions to use a Hash, I have since modified the 
interface to utilize two hashes, one for the systems, and one for the 8 
modules of each system. the relatively stable navigational interface is 
working mostly how I want it now. http://monkeypanelcom/demo

Sm:)e

On Tuesday, October 16, 2012 1:30:17 AM UTC-4, DaveK wrote:
>
> To answer your OP directly (not sure if it has been, I didn't notice it). 
>
>    open_div = 'system'+k+''; 
>    ... 
>    if ($(open_div).visible()==true) { 
>
> if there is no item with id 'system'+k then $(open_div) returns null 
> (correctly) and so $(open_div).visible() throws an error. (for example 
> if nothing has "id='system123'" then when k-123 the error wiil throw) 
>
> You can avoid it with: 
>
>    if ($(open_div)) { 
>        if ($(open_div).visible()==true) { 
>
>
> Dave 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/k3nbGQ3PkhgJ.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to