ramien
04-21-2004, 09:32 PM
I need help on sorting a table using Javascript/DHTML.
I have a CGI script which pulls from a flatfile and pushes to a CGI which builds an html file that populates a table. Instead of using the CGI to sort and have to run this on the server I want to create a simple Javascript that I can use to sort the table.
I have seen javascripts which call from an external sorttable.js and they work fine on my windows box, but when I run it from my unix server it doesnt work. Also sometimes on the windows box the sort just ascends/descends and doesnt really sort.
I just need help with a javascript that uses the Table TH fields and allows you to click on them to sort by alphabetical order. The values in the table will be <INPUT> tags and not plan text, so it is somewhat different.
Can someone point me in the right direction?
I have a CGI script which pulls from a flatfile and pushes to a CGI which builds an html file that populates a table. Instead of using the CGI to sort and have to run this on the server I want to create a simple Javascript that I can use to sort the table.
I have seen javascripts which call from an external sorttable.js and they work fine on my windows box, but when I run it from my unix server it doesnt work. Also sometimes on the windows box the sort just ascends/descends and doesnt really sort.
I just need help with a javascript that uses the Table TH fields and allows you to click on them to sort by alphabetical order. The values in the table will be <INPUT> tags and not plan text, so it is somewhat different.
Can someone point me in the right direction?