473,320 Members | 1,799 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

hide column in table

I have a html table, is possible hide and unhide some column with javascript
?

How can I do ?

Nov 9 '07 #1
5 3448
Thomas 'PointedEars' Lahn wrote on 09 nov 2007 in comp.lang.javascript:
Ceterum censeo Prototype.js esse deletam.
So you think it is already done?

Next time use the gerundivium of deleo:

delendum.
[(proto)typus is masculine]

or delendam
[(java)scriptio is feminine]

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Nov 9 '07 #2
Thomas 'PointedEars' Lahn wrote:
According to CSS2, `table-cell' and `table-header' are the initial values
of the `display' property of `td' and `th' elements, respectively. *It is
only that IE ignores that. *However fortunately, current DOM
implementations allow the property value to be set to the empty string to
restore that value. *Therefore:

if (cell.style.display == 'none')
{
cell.style.display = '';
}
else
{
cell.style.display = 'none';
}
>}
Right, we're talking about cells, not divs. Good point.
>If you are using Prototype library

-- which you should not because of its author(s) not knowing what they are
doing --
That's interesting, I'm not a JS specialist and I've found this library
very, very useful. Please point out some details, what's so wrong about
Prototype?

--
# Regards || piotr[.]solnica[at]gmail[.]com || jid : s0****@jabster.pl #
# s0lnic || http://blog.solnic.in5.pl || icq : 385935391 #
Nov 9 '07 #3
s0lnic wrote:
>-- which you should not because of its author(s) not knowing what they
are doing --

That's interesting, I'm not a JS specialist and I've found this library
very, very useful. Please point out some details, what's so wrong about
Prototype?
ok, don't answer, I'll search the archives...

--
# Regards || piotr[.]solnica[at]gmail[.]com || jid : s0****@jabster.pl #
# s0lnic || http://blog.solnic.in5.pl || icq : 385935391 #
Nov 9 '07 #4
On Nov 10, 7:30 am, "Evertjan." <exjxw.hannivo...@interxnl.netwrote:
Thomas 'PointedEars' Lahn wrote on 09 nov 2007 in comp.lang.javascript:
Ceterum censeo Prototype.js esse deletam.

So you think it is already done?
It may be an appropriate saying, even if the grammar is wrong (I'll
take your word on that). Cato didn't live to see the total
destruction of Carthage, I bet that Thomas will not see call for total
destruction come true either. :-)
--
Rob

Nov 10 '07 #5
RobG wrote:
On Nov 10, 7:30 am, "Evertjan." <exjxw.hannivo...@interxnl.netwrote:
>Thomas 'PointedEars' Lahn wrote on 09 nov 2007 in comp.lang.javascript:
>>Ceterum censeo Prototype.js esse deletam.
So you think it is already done?

It may be an appropriate saying, even if the grammar is wrong (I'll take
your word on that).
The original statement (from Marcus Porcius Cato Censorius called "Cato the
Elder") was "Ceterum censeo Carthaginem esse delendam." which means "I also
think Carthago should be destroyed." There is nothing of a past tense in
it; AFAIK, "Carthaginem delendam esse" is accusative infinitive. Maybe I
did not decline "Prototype.js" properly (comments welcome), but I think it
is understood anyway.
Cato didn't live to see the total destruction of Carthage, I bet that
Thomas will not see call for total destruction come true either. :-)
Nevertheless, his repeated ending his speeches in the senate this way and
thereby his repeated motion to vote on this subject eventually led to a
majority among the senators. And consequently, Carthage was destroyed by
the Romans in the Third Punic War :-)
Regards,

PointedEars
--
var bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
&& navigator.userAgent.indexOf('Mac') != -1
) // Plone, register_function.js:16
Nov 10 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Harry | last post by:
I want to provide a drill down facility for the users - the plan is to intially display a table with summary rows containing results of previous selected search criteria. In each summary row you...
9
by: Don Grover | last post by:
I have a HTML table created using ASP as a web page. ie. HEADING1 HEADING2 HEADING3 etc... data 1 data2 data3 etc and so on How can I toggle hide /...
6
by: Das | last post by:
Hi everyone, I'm using datagrid control to display the data. I want to hide column to be displayed into the data grid. I'm using the code as given below: Method given below is used to bind the...
4
by: Tim | last post by:
Hi, I am trying to hide the datagrid row header (the left most column that has the 'select' triangle in it which moves with the selected row). It seems to be fairly simple;...
2
by: jeet_sen | last post by:
Hi, I have created a table colelcting data from an XML source. After I built the whole table I ahve given user options to filter out columns from the table. For this I have collected all the...
6
by: Ian Collins | last post by:
I'm having a spot of bother hiding table columns in IE. With FF, setting the column cell's style.display to none (or changing the cell's class name to style that has display: none) completely...
3
by: =?Utf-8?B?Um9iZXJ0IENoYXBtYW4=?= | last post by:
Hi, I have a GridView with a fixed number of columns being returned from a SQL query and each having a simple template: <asp:TemplateField HeaderText="Allocations"> <edititemtemplate>...
13
by: rupak | last post by:
Hi! I have a multiple selection of checkboxes <input type='checkbox' name='coffee' id='col1' value='Address'/> <input type='checkbox' name='coffee' id='col2' value='Name'/> <input...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.