[Javascript] See if item is hidden...

jsWalter jsWalter at torres.ws
Tue Jun 22 15:37:49 CDT 2004


> -----Original Message-----
> From: javascript-bounces at LaTech.edu 
> [mailto:javascript-bounces at LaTech.edu] On Behalf Of Chris T
> Sent: Tuesday, June 22, 2004 1:45 PM
> To: [JavaScript List]
> Subject: Re: [Javascript] See if item is hidden...
> 
> 
> I think Walter is saying this style is still set to display, 
> but it's parent is set to none, is that right Walter?

Right, as usual Chris!  ;)


> If so, I would have thought the display property would also
> cascade dynamically (since that's what the C stands for in CSS),
> but maybe that's not the case. I've personally never tested to
> find out.

I have tested. It's not the case.

 
> If it doesn't update the property when the main parent's 
> display property updates, perhaps it's best to store which 
> one is it's "parent" (not a true parent since it's several 
> nodes up) and check it's display property.

Yea, I thought of that, but it got messy real fast.


> Of course you could walk up the tree until you hit what would
> be its parent.

Yes, I had that thought as well. Just was not too sure on how to do
that, and was hoping for a "clear" solution.

Walter





More information about the Javascript mailing list