Click to See Complete Forum and Search --> : Help
mail2ethi
05-15-2003, 10:57 PM
Hi,
Can I have table header to be static when I scroll the table? I want my table header to remain in the top while I scroll all other rows.
I want to write both Onclick and Ondblclick to a same event Is it possible if so how?
Charles
05-16-2003, 04:58 AM
Keep in mind that such a JavaScript solution seems to make the page fail completely for one in ten users. No doubt there is a way to keep things working for those good folks who do not use JavaScript. You may not be able to have the page seem exactly the way you want on all pages, but I'd much rather see your page without the fixed table header than not see your page at all.
Or you could just use the THEAD, TBODY amd TFOOT elements and wait for browsers to catch up (http://www.w3.org/TR/html4/struct/tables.html#h-11.2.3). But then it's been since 1999 and they still haven't gotten it right.
This assumes that you are using tables to display relationships between data. If you are using your tables just to control layout then stop that. It will screw up the browsers used by persons with certain disabilities and it doesn't work so well any way. Use CSS instead.