The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Searching/sorting a table, Is jscript the best option?
random1739
post 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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Brian Chandler
post 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.)
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 27th April 2024 - 04:45 AM