Hi everyone. New to the list.

I'm trying to implement a "shelf" with Scriptaculous. I have five boxes (divs) at the top of my page, to which I would like users to be able to drag and drop ghosts of various elements (also divs) from the body of the page. This operation should be a copy, not a move; that is, if the drag succeeds (i.e., lands on the droppable), the ghosted element should be permanently attached to the shelf, and its opacity set back to 100%. If it fails, the ghosted element should revert back to its original position and vanish.

One further trick is that if the drag succeeds, I want the ghosted copy to "snap" into place on the shelf, and not end its move sort of hanging half-in, half-out, wherever the user dropped it.

There's a part 2 to this question, wherein the user can drag things back out of the shelf into form elements on the page, but I'll save that until I have this part working.

I found a couple of hints in the list archives, but unfortunately my limited skills weren't able to make anything of them. The closest thing I found was Scott Bronson's May 23 post "Dragging a copy of an image and then reverting," [1] but his example URLs are no longer valid.

Thanks in advance for any advice or pointers.

Cheers,
Ben

[1] http://wrath.rubyonrails.org/pipermail/rails-spinoffs/2006-May/004032.html

--
Ben Kimball                               <mailto:[EMAIL PROTECTED]>
Webmaster                                         <phoneto:512.232.2195>
Division of Continuing Education, UT Austin             <walkto:SW7,203>
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to