![]() |
|
|
|
#1 |
|
Just wondering if it's possible to hide and show columns in a table without
actually reloading the page? I know that scripting can alter the CSS properties to hide/show rows, but is it possible do the same thing with a column? Thx! Noozer |
|
|
|
|
#2 |
|
Posts: n/a
|
In article <dTord.405556$%k.253183@pd7tw2no>,
"Noozer" <> wrote: > Just wondering if it's possible to hide and show columns in a table without > actually reloading the page? Yes. > I know that scripting can alter the CSS properties to hide/show rows, but is > it possible do the same thing with a column? There are probably more easy ways, but I find it comfortable enough to replace a class value on relevant table cells and have the effect for that class value defined in a stylesheet. ..hidden { display: none; } <td class="foo">Bar</td> Any clever client side script can add another class "hidden" to all the element that have a class of "foo" when any particular event occurs, like the push of a button. Don't ask me to write one on the spot though. -- Kris <> (nl) |
|
|
|
#3 |
|
Posts: n/a
|
> > Just wondering if it's possible to hide and show columns in a table
without > > actually reloading the page? > > Yes. > > > I know that scripting can alter the CSS properties to hide/show rows, but is > > it possible do the same thing with a column? > > There are probably more easy ways, but I find it comfortable enough to > replace a class value on relevant table cells and have the effect for > that class value defined in a stylesheet. > > .hidden { > display: none; > } > > <td class="foo">Bar</td> > > Any clever client side script can add another class "hidden" to all the > element that have a class of "foo" when any particular event occurs, > like the push of a button. Don't ask me to write one on the spot though. Answers my question well! I was hoping to be able to treat a column as a single entity, but I can deal with classing the individual cells. Thanks! |
|
|
|
#4 |
|
Posts: n/a
|
Noozer wrote:
>>> Just wondering if it's possible to hide and show columns in a table >>> without actually reloading the page? >> >> Yes. >> >>> I know that scripting can alter the CSS properties to hide/show >>> rows, but is it possible do the same thing with a column? >> >> There are probably more easy ways, but I find it comfortable enough >> to replace a class value on relevant table cells and have the effect >> for that class value defined in a stylesheet. >> >> .hidden { >> display: none; >> } >> >> <td class="foo">Bar</td> >> >> Any clever client side script can add another class "hidden" to all >> the element that have a class of "foo" when any particular event >> occurs, like the push of a button. Don't ask me to write one on the >> spot though. > > Answers my question well! I was hoping to be able to treat a column > as a single entity, but I can deal with classing the individual cells. > > Thanks! Noozer, http://www.w3.org/TR/REC-html40/stru....html#h-11.2.4 |
|