Re: invisible table columns
- From: my.shabby.sheep@xxxxxxxxx
- Date: Thu, 30 Aug 2007 20:01:21 -0000
On Aug 30, 3:49 pm, Joe Attardi <jatta...@xxxxxxxxx> wrote:
my.shabby.sh...@xxxxxxxxx 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...@xxxxxxxxx
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...
.
- Follow-Ups:
- Re: invisible table columns
- From: Randy Webb
- Re: invisible table columns
- From: Joe Attardi
- Re: invisible table columns
- References:
- invisible table columns
- From: my . shabby . sheep
- Re: invisible table columns
- From: Joe Attardi
- invisible table columns
- Prev by Date: Re: Stupid Audit Tricks
- Next by Date: recuperar ip de cliente via javascript o jsp
- Previous by thread: Re: invisible table columns
- Next by thread: Re: invisible table columns
- Index(es):