Thanks for both replies! Especially you, Richard D. Worth. You have
given me a good start point, so I can present the code that I have
created, and it worked great for me!
I created all draggables draggable, but one main div is __the only
droppable__.
The code:
$("#planitems").droppable({
drop: function(ev, ui) {
elementid = document.elementFromPoint(ev.clientX,
ev.clientY).parentNode.id; // Element of the droppable
// Deleted much other code here, not necessary for this topic
}
});
So, as you see, having one, repeat _ONE_ droppable that can consist of
hundreds of 'client droppables', just by getting the element id from
the mouseposition. The only stupid thing now is, that I still have to
create hundreds draggables when loading the webpage.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---