Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FireFox 4 no longer supports scrollable TBody - workarounds?

Well as mentioned in the Firefox 4 changelog, there will be no longer support for scrollable <tbody>'s.

There are a bunch of workarounds - javascript or 2 seperate tables - but none of them solves all problems. Javascript is obviously slower (with 600 rows you can forget to try to scroll a table), and 2 tables are gonna be problematic with cell-width.

Do you know if there is some cool way to do this? We are using jsf / facelets and now have to redo the tags, starting with a good idea would be awesome :-)

like image 929
Toskan Avatar asked Jan 31 '11 14:01

Toskan


2 Answers

I know you're trying to avoid js/separate table implementations, but it was the only one I could find that worked across multiple browsers. Try http://www.tablefixedheader.com/. It's a jquery solution and worked, in my limited testing, across IE6 / IE8 / FF3. (Haven't tested FF4).

like image 154
James Young Avatar answered Sep 21 '22 16:09

James Young


PrimeFaces and RichFaces have scrollable datatable components which fetches new rows by ajax.

(both JSF component libraries uses jQuery under the covers anyway)

like image 36
BalusC Avatar answered Sep 19 '22 16:09

BalusC