Re: How do you hide controls and the whitespace?
- From: "Trevor L." <tandcl@xxxxxxxxxxxxxxx>
- Date: Sat, 19 Nov 2005 15:31:21 +1100
Brian Kitt wrote:
> I have a very long table, about 200 rows. I am trying to make
> buttons that can alternately hide and reveal sections of the table.
> It's easy enough to hide and reveal sections with the
> visibility=hidden, but when the section is hidden, all of the area it
> took up is now whitespace. How do I hide rows of the table and not
> have the area become whitespace. In other words, how do I compress
> the rows to basically just disappear.
I think the JS el.style.display="none" will remove the blank space
el is defined in JS as the relevant element, e.g.
el=document.getElementById('rowname') where rowname is the id of the row or
it could even be a span or div
--
Cheers,
Trevor L.
Website: http://tandcl.homemail.com.au
.
- Prev by Date: Re: Too long for RecordCount
- Next by Date: Invoke a JS function from a hyperlink
- Previous by thread: Re: Date validation
- Next by thread: Invoke a JS function from a hyperlink
- Index(es):
Relevant Pages
|