[thelist] dynamically hiding table rows?

Jeffrey Barke jeffrey.barke at themechanism.com
Fri Jun 1 16:28:14 CDT 2007

I'm sorry, but I'm going to have to disagree with a few statements here:

 >> How about using style.visibility = 'collapse'

IE does not support collapse.

 >> BTW, correct style.display for table row is not 'block' but  

This is true, but IE does not support table-row, so it's table-row  
for all the browsers except IE, which must be fed block.

 >> You want to use the DOM.

Why, if this works? DOM involves more work and more overhead.

 >> But doesn't that DELETE the content, once removed the information  
is lost?

Yes, unless you store it in a variable, the node and its contents are  
gone. Which is why we won't use the DOM.

I have a working demo here [Mac: Safari FF; PC: Opera FF IE7 IE6 IE5.5]


Jeffrey Barke
jeffery.barke at theMechanism.com
Lead Developer, US
theMechanism - New York City
440 9th Avenue, 8th Floor
New York, NY 10001-1631
t: +1 212.404.3150
c: +1 917.941.1232
f: +1 212.404.3228


Subscribe to theMechcast, our monthly Podcast:

theMechanism - London
3rd Floor
405 The Strand
London E14 9FW
United Kingdom
t: +44 (0)20 7240 4942
f: +44 (0)20 7240 2262

The information contained in this Electronic mail message is attorney  
privileged and confidential information intended only for the use of  
the individual or entity named above. Such information also is  
intended to be privileged, confidential, and exempt from disclosure  
under applicable law. If the reader of this message is not the  
intended recipient or the employee or agent responsible to deliver it  
to the intended recipient, you are hereby notified that any  
dissemination, distribution, or copying of this communication is  
strictly prohibited. If you have received this communication in  
error, please notify us immediately by telephone.

Blah, blah, blah...

On Jun 1, 2007, at 11:24 AM, Brian Cummiskey wrote:

> ben morrison wrote:
>> But doesn't that DELETE the content, once removed the information  
>> is lost?
> only from view.   Unless you're doing a query or something else  
> dynamic,
> the data is not lost.   it is just no longer part of the markup.
> If you want it back, there's an example there on the same link to  
> add a
> row to a table with the DOM as well.
> -- 
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !

More information about the thelist mailing list