473,387 Members | 3,810 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,387 software developers and data experts.

invisible table columns

Hi,
I want to do the following. I want to make a table column invisible
to the screen, but I still want to be able to get the innertext that
would have been stored in the cell for certain operations. What would
be the best way to do this.
I currently added an invisible attribute to the column tag. Please
help

Aug 30 '07 #1
5 7260
my*************@gmail.com wrote:
I want to do the following. I want to make a table column invisible
to the screen, but I still want to be able to get the innertext that
would have been stored in the cell for certain operations. What would
be the best way to do this.
I currently added an invisible attribute to the column tag. Please
help
This is more of a CSS solution than JavaScript, but you could set the
style to "display: none". That would hide the column from the screen but
it would still exist in the DOM.

--
Joe Attardi
ja******@gmail.com
Aug 30 '07 #2
On Aug 30, 3:49 pm, Joe Attardi <jatta...@gmail.comwrote:
my.shabby.sh...@gmail.com wrote:
I want to do the following. I want to make a table column invisible
to the screen, but I still want to be able to get the innertext that
would have been stored in the cell for certain operations. What would
be the best way to do this.
I currently added an invisible attribute to the column tag. Please
help

This is more of a CSS solution than JavaScript, but you could set the
style to "display: none". That would hide the column from the screen but
it would still exist in the DOM.

--
Joe Attardi
jatta...@gmail.com
Thats not a bad idea but I not to familiar with style sheets. Since
in a table of 5 columns only one would be invisible how would I do
that. Here is the code for the jsp page.
</script>
<style type="text/css">
body {
margin: 1em;
margin-top:.5em;
}
#reportPane {
width: 100%;
}
#histBox table { overflow: auto; }
#buttonTable {
margin-top: 8px; margin-bottom: 8px;
}
</style>
</head>
<body onload="init()" onkeydown="doKey()">
<fieldset id="histBox" >
<legend>Select version(s):</legend>
<div id="histories" class="tableContainer">
<t:newTable model='<%=
pageContext.findAttribute("histories") %>' key="RSN" multiple="true">
<t:column name="user.name" label="User"/>
<t:column name="type" label="Report Type"/>
<t:column name="date" label="Update Time" format="MM/
dd/yyyy kk:mm"/>
<t:column name="netBodyChars" label="Chars Changed"
format="###,###" className="java.lang.Integer"/>
<t:column name="reportHTML" label="report"
invisible="true" />
</t:newTable>
</div>
</fieldset>

Thanks...

Aug 30 '07 #3
my*************@gmail.com wrote:
Thats not a bad idea but I not to familiar with style sheets. Since
in a table of 5 columns only one would be invisible how would I do
that.
I'm not sure what the JSP tag library is that you're using, and what
options the <t:columntag gives you, but in straight HTML you can give
the <tra 'style' attribute, like
<tr style="display: none;"... </tr>

or define an 'invisible' CSS class:

..invisible { display: none; }

and give the <tra 'class' of 'invisible':

<tr class="invisible"... </tr>

Looks like you will have to work within the limitations of your JSP
taglib though.
--
Joe Attardi
ja******@gmail.com
Aug 30 '07 #4
my*************@gmail.com said the following on 8/30/2007 4:01 PM:
On Aug 30, 3:49 pm, Joe Attardi <jatta...@gmail.comwrote:
>my.shabby.sh...@gmail.com wrote:
>>I want to do the following. I want to make a table column invisible
to the screen, but I still want to be able to get the innertext that
would have been stored in the cell for certain operations. What would
be the best way to do this.
I currently added an invisible attribute to the column tag. Please
help
This is more of a CSS solution than JavaScript, but you could set the
style to "display: none". That would hide the column from the screen but
it would still exist in the DOM.
Thats not a bad idea but I not to familiar with style sheets.
comp.infosystems.www.authoring.stylesheets

For the Usenet impaired:
<URL:
http://groups.google.com/group/comp.infosystems.www.authoring.stylesheets/topics?hl=en&lr=&ie=UTF-8>
Since in a table of 5 columns only one would be invisible how would I do
that. Here is the code for the jsp page.
Don't post your server side JSP code, post the resulting HTML/Script/CSS
generated by the JSP code.
</script>
I hope that isn't the first line of code your JSP produces.
<style type="text/css">
I thought you weren't familiar with styles?

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Aug 30 '07 #5
On Aug 30, 4:46 pm, Joe Attardi <jatta...@gmail.comwrote:
my.shabby.sh...@gmail.com wrote:
Thats not a bad idea but I not to familiar with style sheets. Since
in a table of 5 columns only one would be invisible how would I do
that.

I'm not sure what the JSP tag library is that you're using, and what
options the <t:columntag gives you, but in straight HTML you can give
the <tra 'style' attribute, like
<tr style="display: none;"... </tr>

or define an 'invisible' CSS class:

.invisible { display: none; }

and give the <tra 'class' of 'invisible':

<tr class="invisible"... </tr>

Looks like you will have to work within the limitations of your JSP
taglib though.

--
Joe Attardi
jatta...@gmail.com
Thanks for your help. I tried your method and it works ok, but is
there a way for the row to not only be not displayed, but to not
appear at all?
thanks...

Aug 31 '07 #6

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

Similar topics

3
by: Igor Mendizabal | last post by:
Hello, We're doing our own datagrid based on the System.windows.forms.datagrid control, and are having some problems with horizontal scrolling. In general, we construct our datagrid adding a...
1
by: Susan Geller | last post by:
I have a table server control (System.Web.UI.WebControls.Table) on my form that has three columns. Sometimes I need the second column to be invisible, sometimes the third. How can I set a column...
3
by: Richard | last post by:
After printing a userlist to a Datagrid i want some names not to be shown. I want to know how i can make a entire datagrid row invisible. I suspect its something with the OnItemDatabound but i am...
15
by: John Blair | last post by:
Hi, Code attached but the line that gives me an error is MyDataGrid.Columns(2).Visible = False It actually gives me an error for any value instead of 2 even when 9 bound columns of data exist....
3
by: david | last post by:
I have posted my question before. It seems that I can not find the solution. The question: I have datasource, say, ds which is bounded to a datagrid, dg. Assume that ds have 5 columns,...
5
by: bbawa1 | last post by:
I have a GetData methd which is returning a table using
9
by: Mel | last post by:
I have 10 columns total. 3 of them are invisible. The rest are read- only BoundFields, 3 of which are editable fields using TemplateFields. Upon editing, I want to validate what the user enters...
4
by: zhshqzyc | last post by:
Hi, I am using the paging skills for my page. I'm doing manual databinding (that is, setting the DataSource property, and then calling DataBind()) instead of automatic databinding. So I manually...
0
by: Joel Ryan | last post by:
hello, I'm currently working with a xamdatagrid, this grid is bound to a dataset as its source, and what im trying to do is, based on the column name(or the field name as the xamdatagrid calls it...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.