Searching/sorting a table, Is jscript the best option? |
Searching/sorting a table, Is jscript the best option? |
random1739 |
Sep 23 2007, 10:15 PM
Post
#1
|
Group: Members Posts: 1 Joined: 23-September 07 Member No.: 3,892 |
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 This post has been edited by random1739: Sep 23 2007, 10:15 PM |
Brian Chandler |
Sep 24 2007, 01:36 AM
Post
#2
|
Jocular coder Group: Members Posts: 2,460 Joined: 31-August 06 Member No.: 43 |
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 |
Sep 24 2007, 10:10 AM
Post
#3
|
. Group: WDG Moderators Posts: 9,661 Joined: 10-August 06 Member No.: 7 |
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. |
Lo-Fi Version | Time is now: 28th April 2024 - 07:31 AM |