What a great script
Posted: Fri Jan 13, 2006 1:57 am
I restructured the javascript that generates the code to include <thead> and <tbody> tags, added the script to my header (temporarily) and the initSortTable call immediately after the code generating the table, refreshed everything and ... nothing. Ouch. Can smell that pizza. Don't want burnt lunch.
Happily all that had taken less than 4 mins and a quick scan of your example and script resulted in a successful guess that I needed to change the <th>s in my table header to <td>s. Easily done with time left over to style the <thead> then hot, fresh(ish) pizza to celebrate.
I still can't believe that start to finish it took me less than 8 mins to add functionality that I had been pondering on and off the past week.
Just one question: any particular reason why you coded this to work only with <td> tags in the header?
Anyway, great job, not just on this script, but the whole site. It just oozes class throughout.