On the subject of drop delegation, note the following, when the container is both a draggable & a droppable, using the droppable function will not work. Instead of using 'droppable' use the 'stop' event to determine the droppable.
On Nov 13, 4:02 pm, "Paul Bakaus" <[EMAIL PROTECTED]> wrote: > Hi there, > > that's exactly what I wanted to propose - just make the outer > container draggable, and then work with e.target in the helper > function to make the actual target draggable. > > Cheers, > Paul > > On Thu, Nov 13, 2008 at 2:56 PM, Neil Craig <[EMAIL PROTECTED]>wrote: > > > > > > > After mucking around, I discovered that it might still be possible to > > delegate dragevents. Through the very helpful helper option for a > > draggable. Although the current version of the UI library is buggy, > > the latest trunk version seems to be working. If you supply a helper > > function instead of the usual "clone" or "original", the helper > > function is passed two arguments, the element to be dragged (which I > > will ignore, it is the container) and the DOM event (mousedown) which > > in turn I can use to determine the real draggable through the target > > property. > > > On Nov 13, 2:58 pm, Neil Craig <[EMAIL PROTECTED]> wrote: > > > Since this is the official jQuery UI mailing list, I hope to get an > > > honest answer from one of the UI devs. > > > > Is there a plan to provide a way for dragging & dropping through the > > > event delegation method? > > > > It would be more efficient to attach all the necessary events once, > > > especially when a container with elements that changes frequently. > > > > Currently it is possible to delegate a droppable through some > > > trickery, but draggables still elude me. The only way is to destroy > > > drag events when the contents of the container has changed and re- > > > apply them. > > -- > Paul Bakaus > UI Architect > --http://paulbakaus.comhttp://www.linkedin.com/in/paulbakaus --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~---
