Eric, Awesome suggestion thank you! I am now only observing the containers and deciding what to do based on the event.findElement().
as far as the drag/drop goes, I am actually doing my own version. on mousedown of the container, I am cloning the element returned by event.findElement() and attaching it to the cursor (slightly offset so that the cursor is not over the top of the clone) and then on mouseup finding the new element and grabbing the info I need to complete the 'drop'. same goes with observing "click": I am only observing "click" on the container. Thanks again! On Oct 19, 1:02 am, Eric <[email protected]> wrote: > Hi Scott, > > I didn't do much with drag/drop using scripty, but can't you just have > one droppable (in your case it would be $('cats')) and find out which > span was under the mouse when a drop occurs? > > In the same spirit, instead of adding a "onmouseover" event on > each .drag item, you may add one on your body (or on your two ULs if > you prefer), and test if the event happened on one .drag element > (something like "if(elt=event.findElement('.drag')) ..."). > > Last point: I don't know if it is possible, but did you try to create > the draggable on the mousedown instead of the mouseover? > It will save lots of work to the browser (It would require some > tweaks, but I successfully used this technique with > Ajax.InPlaceEditor). > > Eric -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en.
