[Javascript] overflow: auto

Michael Dougherty Michael_Dougherty at PBP.com
Wed Apr 30 08:43:14 CDT 2003


I did research the thead and tbody tags... of course our intranet is
standardized on IE5.5+ for all the other proprietary IE junk...

My main issue was to make a scrollable table with a constantly visible
header, but without requiring a fixed width on the columns.  The routines to
keep the header and data widths synch'd are more complex than i care to
decypher - so i'll probably just maintain an array of column names and their
appropriate widths, so i can set a specific width in both tables.

The iframe trick would be fine if the data wasn't all generated client-side
as a result of an ADO query.

Back when the virtual world was formed, we had great big machines that
served interfaces to dumb little machines.  The little machines grew up and
got smart enough to force the big machines to retire to niche environments.
Now those same grown up machines are serving another generation of (not
quite as) dumb little (virtual) machines.  Interesting, huh?

-----Original Message-----
From: javascript at LaTech.edu [mailto:javascript at LaTech.edu]
Sent: Wednesday, April 30, 2003 9:33 AM
To: javascript at latech.edu
Subject: Re: [Javascript] overflow: auto


Michael Dougherty wrote:

>> Is there a convenient way to lock the table header so that it doesn't
>scroll
>> off the visible area of it's container span?

Define "convenient" :-)  It's standard CSS, works great in Mozilla,
but of course IE doesn't support it.

Use THEAD and TBODY tags, set `overflow: auto` and `height: 300px`
(for example) on TBODY, and Bob's your uncle ...

HTH!
--
Hassan Schroeder ----------------------------- hassan at webtuitive.com
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

                           dream.  code.



_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript



More information about the Javascript mailing list