*
The moose likes HTML, CSS and JavaScript and the fly likes URGENT-Change cell width Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "URGENT-Change cell width " Watch "URGENT-Change cell width " New topic
Author

URGENT-Change cell width

Vrunda Joshi
Ranch Hand

Joined: Dec 03, 2001
Posts: 104
hello,
i need to have a scrollable table(fixed header part and scrollable contents).
for this i have taken two seperate tables for header and data,i am creating this tables dynamically.so as the data changes,the cell size of the data table changes,but the header table cell size remains the same,so i need to change the header table cells size also as the header columns and the data table cells look mismathched.
is there any way out to change the cell size of header table cells dynamically?
i hope i have made myself clear
thanks in advance
-vrunda
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Hello,
I worked on this.....
look at this forum link
http://www.coderanch.com/t/113462/HTML-JavaScript/frames-scrolling-spreadsheet
Eric
Yuriy Fuksenko
Ranch Hand

Joined: Feb 02, 2001
Posts: 413
I think the simplest way for IE4+ and NS6+ would be to always create your data table with a header, but set style="visibility:hidden;" for a header row (I mean in TR tag) - it will produce one line of emty space, but it should not really affect anything (you can put this fake header at the bottom of the table).
At this case, when you change any fields, you always have correct sizes of all columns, that you could use for the real header piece
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: URGENT-Change cell width