Dan,
>If you have access to server-side scripting, why on earth would you want to sort this client-side?<
Just because I have access to it doesn't mean I know how to use it :-)
I have to sort the list different ways on different pages.
I was hoping there was simple Javascript that I could...
This program is great for tables I want to make resortable but it does not sort onload, at least not as far as I can tell.
If it could be modified to sort onload, that would be great but I don't know how to do that.
To get the table sorting script, go to this forum:
http://www.almosteffortless.com/forum/viewtopic.php?id=8
Scroll down to the second post.
Various versions of this script can be found all over the internet. It works great.
The data comes from an SQL server database.
I am not a programmer. I bought this program "off the shelf" and I modify it with various scripts I have found. The sellers of the program could probably do this for me but it takes them 2 or 3 months to get to it.
I found a great table sorting...
There are only two columns, CategoryName and ItemCount and, yes, I want to sort alphabetically by CategoryName.
Could you give me an example of how to bring .asp data into a javascript array? I am not a programmer.
<%
For Each Category In categories
%>
<table>
<tr><td><%=Category.CategoryName%></td>
<td><%=Category.ItemCount%></td></tr>
</table>
This is a simplified version of it. I want the left column to display alphabetically.
I have a database-generated (.asp) list and I want to display it in alphabetical order when it loads up on a page. It does not have to be resortable.
Is there a simple way to do this in javascript?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.