Enable ghosting, create a revert function that instantly sets the img node back into place.
I'll see if I can whip up some code tomorrow if you don't state you overcame your problem. It is time for me to call it quits for today. -Andrew Martinez -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eric Anderson Sent: Tuesday, May 23, 2006 5:16 PM To: [email protected] Subject: [Rails-spinoffs] Re: Dragging a copy of an image and then reverting Scott Bronson wrote: > Any ideas? Thank you, Disable ghosting (so it doesn't try to do this for you) and clone the node yourself (much like ghosting does). Then if the drag fails delete the clone (allowing the revert to move the element back). If the drag succeeds then you can leave the cloned node. You may need to make the clone into a draggable so it is ready to be dragged again. Eric _______________________________________________ Rails-spinoffs mailing list [email protected] http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs _______________________________________________ Rails-spinoffs mailing list [email protected] http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
