|
BeTheBall -> Sortable Tables (6/30/2005 19:47:04)
|
When pulling data from a database, we often want to add the option of sorting that data based on the column title, say name, date or ID number. The way I have always done that was to send a second request to the database and retrieve the data with a new order by clause. There are a few tutorials out there that show how to do it. However, I just stumbled across an alternative, using javascript. With this method, no second call is needed. Have a look: http://www.kryogenix.org/code/browser/sorttable/
|
|
|
|