Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Hide/Show table columns?

Reply
Thread Tools

Hide/Show table columns?

 
 
Noozer
Guest
Posts: n/a
 
      12-01-2004
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!


 
Reply With Quote
 
 
 
 
Kris
Guest
Posts: n/a
 
      12-01-2004
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)
 
Reply With Quote
 
 
 
 
Noozer
Guest
Posts: n/a
 
      12-01-2004
> > 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!


 
Reply With Quote
 
Nik Coughlin
Guest
Posts: n/a
 
      12-01-2004
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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Table/table rows/table data tag question? Rio HTML 4 11-05-2004 08:11 AM
exchange routes between global IP routing table and VRF routing table zher Cisco 2 11-04-2004 11:28 PM
Tying up Port Login table entries with Port Table Entries in CISCO SNMP John Ramsden Cisco 0 07-24-2004 04:03 PM
Difference between routing-table and forwarding-table Joachim Krais Cisco 2 11-23-2003 02:52 PM
Could not load type VTFixup Table from assembly Invalid token in v-table fix-up table. David Williams ASP .Net 2 08-12-2003 07:55 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57