scrollable table

Tips submitted by ASPMaker users

scrollable table

Postby josejad » Tue Aug 04, 2009 5:25 pm

Hello everybody:

The easiest way I've found to make a scrollable table
1.- Search google for the webtoolkit.scrollabletable.js script from webtooklit web
2.- In your generated paged, add the line
<script type="text/javascript" src="webtoolkit.scrollabletable.js"></script>
3.- Give an "id" to the tables. i.e. "<table id="tblNAMES" cellspacing="0" rowhighlightclass="ewTableHighlightRow" rowselectclass="ewTableSelectRow" roweditclass="ewTableEditRow" class="ewTable ewTableSeparate">"
4.- Search in the generated pages the text "//Write your table-specific startup script here" and write a "var t = new ScrollableTable(document.getElementById('tblNAMES'),100);" for every table you want to make scrollable

and that's all
I don't know yet why, but some tables get a fixed header, and other ones no, when I know why, I'll submit to this thread.

Return to User Submitted Tips (ASPMaker)