Help - Search - Members - Calendar
Full Version: Searching/sorting a table
HTMLHelp Forums > Programming > Client-side Scripting
random1739
I have a rather large and ungainly table on a web page, and I want to implement some way to make the information more accessible (http://www.diveadventures.com.au/pages/Group_Dep.htm)

I think there's a way I could implement searching or filtering boxes using javascript or similar which might improve the table, but I have limited experience coding with js.

Would this be simple to do? Or is there another method which might be more appropriate?

Thanks in advance
Brian Chandler
No, not javascript. Use a server-side language to generate the page. It's easiest if the data can all be in a database too.

(Looking at your page, this is a classic job for a DB-backed website.)
Christian J
Here's a javascript solution where the user can sort any column without reloading the whole page: http://www.kryogenix.org/code/browser/sorttable/

A server-side solution will always be more reliable, though.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.