Hi Michael, did you already find a solution concerning "revert only when not dropped on a dropzone" ?
Does anyone else has an idea about my other problem: If the draggable element gets dropped on a dropzone, I want a copy of it on the original position where it as been dragged from and with an opacity. Thx! Am 16.10.2005 um 21:19 Uhr schrieb Michael Burton: > Thank you Francois. I should have clarified a bit. If the user drags > something somewhere they shouldn't, i want to run the revert effect, but I > don't want to run the effect if they drag somewhere valid. > Or even better i want to run a different effect if they drag somewhere > valid. It's basically the same behavior as most drag-and-drop systems... if > you try to drag an icon in windows or mac os to a target that can't accept > it, it will revert back to its original location. Whereas if you drop it > onto a valid folder, it will move to that folder. >>From the code it appears that the revert effect will be run whether the > draggable landed on a droppable or not, which is not the desired behavior > Mike > On 10/16/05, Francois Beausoleil <[EMAIL PROTECTED]> wrote: >> >> Hello Michael, >> >> 2005/10/15, Michael Burton <[EMAIL PROTECTED]>: >> > I'm trying to do the same thing as #1 using 1.5 rc3. Basically, if the >> user >> > drags something somewhere they shouldn't, i want to run the revert >> effect. >> >> Have you seen the revert option to Draggable ? Call like this: >> new Draggable('id', {revert: true}) >> >> If your problem is something else, just say so. >> >> Bye, >> François >> >> _______________________________________________ >> Rails-spinoffs mailing list >> Rails-spinoffs@lists.rubyonrails.org >> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >> >> >> >> _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs