Another example (with a custom date sorting function) can be found on the Moo Database browser. Installation Download tablesort.js (9KB) or the compressed tablesort-min.js (4KB), then add this line anywhere in your page: <SCRIPT LANGUAGE='JavaScript1.2' SRC='tablesort.js'></SCRIPT> Modify your table(s) so that the header row(s) are within a <THEAD> block, any footer rows are within a <TFOOT> block
絶対お勧め!JavaScriptでテーブルソート「Table Sorter」 普通のテーブルタグに対して、ヘッダ部分はtheadタグとthタグで作るだけでいい。データ部分は全体をtbodyタグで囲んで、tdタグで記述するだけだ。 Extを使っても同様の方法でソート可能なテーブルを実装できます。 以下のサンプルからExt.grid.TableGridクラスをもらってきて使うだけです。 From Markup Grid Example Script var grid = new Ext.grid.TableGrid('the-table'); grid.render(); ロード時にページ内のテーブル全てに適用したければ下記のような感じでOKです。 Ext.onReady(function() { Ext.select('table').each(function (e) { var grid
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く