Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / JavaScript / August 2007



Tip: Looking for answers? Try searching our database.

invisible table columns

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
my.shabby.sheep@gmail.com - 30 Aug 2007 20:43 GMT
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
Joe Attardi - 30 Aug 2007 20:49 GMT
> 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.

Signature

Joe Attardi
jattardi@gmail.com

my.shabby.sheep@gmail.com - 30 Aug 2007 21:01 GMT
> my.shabby.sh...@gmail.com wrote:
> > I want to do the following.  I want to make a table column invisible
[quoted text clipped - 11 lines]
> 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...
Joe Attardi - 30 Aug 2007 21:46 GMT
> 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:column> tag gives you, but in straight HTML you can give
the <tr> a 'style' attribute, like
<tr style="display: none;"> ... </tr>

or define an 'invisible' CSS class:

.invisible { display: none; }

and give the <tr> a 'class' of 'invisible':

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

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

Signature

Joe Attardi
jattardi@gmail.com

my.shabby.sheep@gmail.com - 31 Aug 2007 20:14 GMT
> my.shabby.sh...@gmail.com wrote:
> > Thats not a bad idea but I not to familiar with style sheets.  Since
[quoted text clipped - 20 lines]
> 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...
Randy Webb - 30 Aug 2007 22:36 GMT
my.shabby.sheep@gmail.com said the following on 8/30/2007 4:01 PM:
>> my.shabby.sh...@gmail.com wrote:
>>> I want to do the following.  I want to make a table column invisible
[quoted text clipped - 7 lines]
>> 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?

Signature

Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.