By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,531 Members | 884 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,531 IT Pros & Developers. It's quick & easy.

generic code to sort tables ?

P: n/a
Mel
i need to sort my table based on a "header click".

is there a generic code out there that does that for me, or i have to write
one for each and every table i come up with ?

many thanks for your input
Jul 23 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Mel wrote:
i need to sort my table based on a "header click".

is there a generic code out there that does that for me, or i have to write
one for each and every table i come up with ?

many thanks for your input

There is generic code to a degree, but the sorting routine may have to
be custom made.

http://www.mickweb.com/football/aleague/profiles.html

The sort table function receives a sort function as an argument.

See if this is what you're after and, if so, I'd be happy to help you.

Mick
Jul 23 '05 #2

P: n/a
Mel wrote:
i need to sort my table based on a "header click".

is there a generic code out there that does that for me, or i have to write one for each and every table i come up with ?

many thanks for your input


Not sure how 'generic' this is, but it comes with a nice tutorial.

http://www.brainjar.com/dhtml/tablesort/

Jul 23 '05 #3

P: n/a
Also not sure about 'generic' but here's another link with a nice
description and it's unobtrusive javascript to boot!

http://www.kryogenix.org/code/browser/sorttable/

- whiteinge

RobB wrote:
Mel wrote:
i need to sort my table based on a "header click".

is there a generic code out there that does that for me, or i have
to write
one for each and every table i come up with ?

many thanks for your input


Not sure how 'generic' this is, but it comes with a nice tutorial.

http://www.brainjar.com/dhtml/tablesort/


Jul 23 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.