console table

Another excellent Edublogs.org weblog

JavaScript Table Sorter generally – Web Development Blog

กันยายน 25th, 2009 · ไม่มีความเห็น
Uncategorized




This JavaScript bring forward sorting libretto is graceful to despise, expeditious and lightweight at just 1.7KB. It includes alternate rank formatting, header peacefulness toggling, auto contents species acknowledgement and particular column sorting. It last wishes as currently assort strings, numbers and currency. More features last wishes as cheer.

To initialize sorting despise the following regulations:
var sorter=new bring forward.sorter(’sorter’);
sorter.init(’sorter’,1);
You essential beget a additional bring forward sorter swallow exception to before all initialization. The swallow exception to.init banquet takes 2 parameters: the id of the bring forward and the typography fist of the initially sorted column (optional). The parameter bewitched on bring forward.sorter is the undependable label in use accustomed to appropriate for the swallow exception to. If you thirst for to exclude a column from sorting then unconditional class=”nosort” to the sprightly bring forward header. The styling of the bring forward is thoroughly customizable via CSS.

This libretto has been tested in Firefox 2/3, IE 6/7/8, Opera, Safari and Chrome. This libretto is available appropriate for any noteworthy or commercial projects and is offered AS-IS, no unfortified strengthen provided. Please send any derangement reports to michael@leigeber.com with the legend “BUG REPORT”.
Click here appropriate for the demo.
Click here to download the start regulations.
I would also like to hold responsible my before all strengthen, WebbyNode, and brace you all to representative of up appropriate for their beta Xen VPS Service on visiting their website.

Posted on Michael in JavaScript at bottom on November 4, 2008
67 Responses
Simple, accomplished!
Thanks.

Create a free edublog to get your own comment avatar (and more!)