I'm considering trying a jQuery implementation for this one, too.
I'll check out your suggestion!

Thanks!


-----Original Message-----
From: Michael E. Carluen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 13, 2007 2:27 PM
To: CF-Talk
Subject: RE: How to re-order items?

Hi there Rick,

This solution is similar to Bobby's, but with a CF+jQuery twist.

First, when a new realtor is added to a list, the assigned seniority sort
order number will be the maximum number.  Example, if there are 9 realtors,
the new/added realtor will have sort order number (seniority_id) 10.

Next, you can use jQuery's Interface Draggable and Sortable plugin
http://interface.eyecon.ro/docs/sort  to reorder the list.  The user then
drags the 10th realtor (the added guy) to the 2nd position (new seniority).
Once saved, the submitted form will post a serialized list of realtor_id
numbers in the desired sort order. You can then loop through the list and
update the seniority_id of all realtors using the realtor_id as your index.

The demo is at: http://interface.eyecon.ro/demos and select Sortable list.

This is a very scalable solution.

Hope that helps, Rick.

Michael




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:269698
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to