473,854 Members | 1,576 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 7298
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="doKe y()">
<fieldset id="histBox" >
<legend>Selec t version(s):</legend>
<div id="histories" class="tableCon tainer">
<t:newTable model='<%=
pageContext.fin dAttribute("his tories") %>' 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="netBodyCh ars" label="Chars Changed"
format="###,### " className="java .lang.Integer"/>
<t:column name="reportHTM L" 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="invisibl e"... </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.infosystem s.www.authoring.stylesheets

For the Usenet impaired:
<URL:
http://groups.google.c om/group/comp.infosystem s.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.javas cript 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="invisibl e"... </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
1886
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 tablestyle and gridcolumnstyles to that tablestyle. If we have invisible columns, we add the gridcolumnstyle with Width = 0 (couldn't find any other way to do it, because there is no Visible property available...).
1
2540
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 to be invisible in code? There appears to not be a programmatic way to work with columns in the way that there is rows. Thanks. --Susan
3
2165
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 kinda stuck there. but this is basicly what i want. if Username = "Deleted_User" then 'make entire table row invisible. End if
15
3773
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. How do i hide a column? Thanks. MyConnection = New SqlConnection("server=(local);database=pubs;Trusted_Connection=yes") MyCommand = New SqlDataAdapter("select * from Authors",
3
1854
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, c0,c1,c2,c3,c4. In some case, say, case 1, I want to display columns c0, c1,c2 in dg and use c3 and c4 in code behind. In case 2, I want to display column c0, c3, and c4, and use c1 and c2 in code behind. The following Possible solution do not work:
5
4010
by: bbawa1 | last post by:
I have a GetData methd which is returning a table using
9
4798
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 against one of those invisible columns. How do I accomplish this? The code below that I attempted just returns an empty string when I try to retrieve the invisible column data: gvParts.Rows(e.RowIndex).Cells(8).Text
4
2991
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 handle events for paging. But the page is invisible. Thanks for your help. protected void GridView_PageIndexChanging(object sender, GridViewPageEventArgs e) { DataSet myDataSet = new DataSet(); ...
0
1338
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 i think) i want to make that field invisible but every time ive tried it says object not referenced to an instance of an object. heres the code im working with, i figure if i can figure it out here i can use it in another program Imports...
0
9901
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9751
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10678
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10751
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9512
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7914
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7079
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5740
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
4153
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.