01 - 12 - 2003


Sortable Tables, with color

S.L. @ Kyrogrenix's sorttable.js is a remarkable piece of work. I had been working on a similar bit of code, but recycled those bits as soon as I tried it.

I've incoporated the function into Uzilla as well as several other applications and it works like a charm in a beautifully unobstrusive fashion. However, it's not compatible with server side alternating row colors, as when the rows get shuffled, the colors are all mucked.  Enter sorttable_colored.js, a merging of my js alternating row colors with sorttable.js.

The new version is not as optimized as it could be... patches accepted and republished.

A few tips for using the sortable.js script in general:
  • If your columns have numeric data, avoid spaces to get numeric sorting.
  • Missing cells, particularly in the early rows can cause problems.
  • The caption tag is a great alternative to a rowspanned table cell and is ignored by sorttable and alternateRowColors
|||
Posted at 18:45

Navigate:

<< Sharing Gestures
DHTML Spottings Galore>>


Surf*Mind*Web

Deepen
Browse



search collections


Best of the Blog

08/00 Customization Drawbacks
12/00 Fish-eye Craigslist (IE)
07/01 Smart webserver log analysis
03/03 Junkie: Adaptive Freshness
04/03 Cascading Fish-eye Menus
05/03 Browser Maps (dhtml)
01/03 GOMS in Bugzilla.mozilla?
10/03 CSS Link Markers
01/04 Blog Mountain
03/04 Personal Web Information Manager
04/04 Mousing Behavior in Windows
06/04 DHTML Multi-Select Widget

More Andyed Weblogs:

Cold Fusion Blog: experiences as an instructor & developer.

Clemson Human Factors: master's program notes.

Andyed's Mozilla Projects
aka "chromeantics"

Mozwho: personal adaptive homepage and bookmark/history API for Mozilla.

Optimoz Gestures Back and Forward with a wrist flick or mouse rocker

GoogleBar for Moz