The problem I am running into is the method in that tutorial relies on is document.getElementById, but in order to hide multiple tr rows I would have to assign them classes instead of ids.
I think just giving the id and applying the style display none and block in the row (<tr id=“idname” style=“display:none”>) from javascript as you have done in div would be the solution.
As i have done and worked in Firefox 2.0 and IE 6 that display:one and display:(blank no any text) is working collapsing in the case of td. I am not sure on tr. Does this matter in tr and td?
what about changing their size and overflow? I have a td that gets maximized to full screen width and height, and then can be restored without any page loads… that works if you want to see it.
Yes, using classes is one way. Using multiple TBODYs is another way. Or another way is to start with a reference to one row (or its row number) and iterate over the next n rows and hide them - no classes or anything extra needed.
It just depends on what you want to accomplish. Tell us something about your application, or give us a link.
Sorry for the delay in replying to this. I was trying to work off the tbody tag with a method that I found elsewhere. A test of what I am working on is at: http://cannon.makibiedev.com/temp/test3.shtml
It works almost like I need it to, but I also have to find a way to change the “View all messages” to “hide all messages” when the table is fully expanded. Any idea on the best way to do this?