> -----Original Message-----
> From: Raymond Camden [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 18, 2005 10:09 PM
> To: CF-Community
> Subject: client side table sorting
> 
> I seem to remember seeing a post (not here, on the web somewhere)
> showing how to sort a table client-side. Any one else remember this?
> Also - any good examples of table layout (by that I mean a good layout
> I can steal to layout some numerical data).

If you want to build your own I highly recommend my JS Ordered Collection
Object.  ;^)

http://www.depressedpress.com/depressedpress/Content/Development/JavaScript/
Extensions/ObCollectionOrdered/Index.cfm

The object just abstracts Array processing and does a lot of the grunt work
for you.

Just create each table row as a new object and then add each object to the
collection.

You can then easily sort the objects by any of the properties ascending or
descending in several ways or provide your own sort functions for special
columns.

Then you just loop over the collection to display the sorted stuff.

I could put an example together in a few minutes if you like.

Jim Davis





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:5:165252
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/5
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:5
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to