Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] overflow: auto
- From: dlovering at gazos.com (David Lovering)
- Subject: [Javascript] overflow: auto
- Date: Wed Apr 30 00:27:32 2003
The method you suggest is certainly the easiest. The other is to build a 2D array in which each row represents a row in the table. Using createElement and deleteElement commands you could then selectively delete rows from the top/bottom and add rows on the opposite side to simulate scrolling, based upon the presumption that only N rows would be visible (in addition to the header). The data fields would be loaded from the appropriate array values. This would only require one real table, but would be commensurately more complicated. -- Dave Lovering ----- Original Message ----- From: "Walter Torres" <walter@xxxxxxxxx> To: "[JavaScript List]" <javascript@xxxxxxxxxx> Sent: Tuesday, April 29, 2003 9:59 PM 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@xxxxxxxxxx > > [mailto:javascript-bounces@xxxxxxxxxx]On Behalf Of Michael Dougherty > > Sent: Thursday, April 24, 2003 1:57 PM > > To: javascript@xxxxxxxxxx > > 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@xxxxxxxxxx > > https://lists.LaTech.edu/mailman/listinfo/javascript > > _______________________________________________ > Javascript mailing list > Javascript@xxxxxxxxxx > https://lists.LaTech.edu/mailman/listinfo/javascript > >
- References:
- [Javascript] overflow: auto
- From: Walter Torres
- [Javascript] overflow: auto
- Prev by Date: [Javascript] overflow: auto
- Next by Date: [Javascript] overflow: auto
- Previous by thread: [Javascript] overflow: auto
- Next by thread: [Javascript] overflow: auto
- Index(es):