On Mon, 31 Oct 2005 04:34:59 GMT, "shawnews" <>
wrote, quoted or indirectly quoted someone who said :
>A table can be sorted client side with javascript in some cases,( colspans
>and rowspans are problematic with the scripts I've tried) else you'll need
>to do it server side. The table can be placed inside div tags with the
>style set to "overflow: auto" to make it scrollable
I think it would be masochistic to implement a full JTable in
JavaScript where the server could insert, delete, replace, resort etc.
The easiest way to do it with Java script would be to send the row
data, and three int[] giving the orderings for three different sorts.
Then have JavaScript just select the ordering and display in that
order. That way you don't have to write a sort and comparators in
JavaScript. The first array would just be the numbers { 0, 1 , 2 ... }
and you would not actually bother to transmit it.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.