[Javascript] overflow: auto

Tim Makins spindrift at oceanfree.net
Wed Apr 30 01:09:04 CDT 2003


There is a very neat example of doing this using iframes.....
http://www.cs.tut.fi/~jkorpela/html/iframe.html

Its about 1/3 down the page, in the section headed 'Simulating scrollable
tables'

Tim in Ireland

----- Original Message -----
From: "Walter Torres" <walter at torres.ws>
To: "[JavaScript List]" <javascript at LaTech.edu>
Sent: 30 April 2003 04:59
Subject: RE: [Javascript] overflow: auto


> The only way I've been able to "mimic" this behaviour was to create 2
> seperate tables. One for the HEADER and another, inside an overflow
region,
> containing the data.
>
> Walter
>
> > -----Original Message-----
> > From: javascript-bounces at LaTech.edu
> > [mailto:javascript-bounces at LaTech.edu]On Behalf Of Michael Dougherty
> > Sent: Thursday, April 24, 2003 1:57 PM
> > To: javascript at LaTech.edu
> > Subject: [Javascript] overflow: auto
> >
> >
> > <span style='width: 200; height: 300; overflow: auto;'>
> >   <table>
> >     <tr>
> >       <th>Name</th>
> >       <th>Value</th>
> >     </tr>
> >     <tr>
> >       <td>Row1</td>
> >       <td>Val1</td>
> >     </tr>
> >     (many more rows)
> >   </table>
> > </span>
> >
> > 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?
> >
> > I would like to not have to define the widths of the columns and have a
> > fixed table with one row for the header outside the span...
> >
> >
> > _______________________________________________
> > Javascript mailing list
> > Javascript at LaTech.edu
> > https://lists.LaTech.edu/mailman/listinfo/javascript
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>



More information about the Javascript mailing list