Weird Thoughts From Eric's Head

Tags - Categories : All | AJAX | BUSINESS | PERSONAL | PROGRAMMING | BOOK REVIEW

JavaScript Sortable Table

Well since my last code snip about scrolling a div to the bottom was really popular, I thought that I would dust off an old script of mine and bring it out for people to play with.

People always ask how to make a table sortable with JavaScript and this code on the following link to my site allows you do it it. I will warn you that the code is not the greatest implementation to add it to the table, but it sure does a good job at sorting.

So if you are using the server to sort a simple table, you are wasting time and bandwidth when it can be done on the client.

The example and code:http://www.pascarello.com/sortTable/

Hope that helps!

Eric Pascarello
Coauthor of Ajax In Action
Moderator of HTML/JavaScript at www.JavaRanch.com
Author of: JavaScript: Your Visual Blueprint for Dynamic Web Pages




Add a comment

Title
Body
HTML : b, i, blockquote, br, p, pre, a href="", ul, ol, li
Math Quiz 9 + 10 = (Helps stop blog spam)
Name
E-mail address
Website
Remember me Yes  No 

E-mail addresses are not publicly displayed, so please only leave your e-mail address if you would like to be notified when new comments are added to this blog entry (you can opt-out later).

TrackBack to http://radio.javaranch.com/pascarello/addTrackBack.action?entry=1135894515978