> -----Original Message-----
> From: Taavon, James [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 04, 2005 4:57 PM
> To: CF-Talk
> Subject: Column Header Sorting - WDDX
> 
> Anyone ever implement Column Header Sorting using WDDX? If so, some
> sample code would be cool.

If you mean client-side I'm not sure why you'd need WWDX?

I do this client-side in JavaScript using my obCollectionOrdered JavaScript
object:

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

Essentially I create a JavaScript object to represent the elements of the
list (one object per row).  You then throw all of those elements into an
obCollectionOrdered instance.

You can then loop over the instance to display the table.  Trigger the
collection's "sortByProp()" method to sort on any property of the member
objects - your columns presumably.

The provided example shows a select box - the creation, looping and sorting
methods would be the same for any object.

Jim Davis




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

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

Reply via email to