I was thinking that, but I don't see how to know when the Draggable leaves it.
Would storing a reference to the droppable in the draggable be sufficient for this? Use the onDropped function to re-add the previous Dropabble? I've noticed that onDropped doesn't appear to be documented (but does work...) On Oct 1, 2008, at 11:15 AM, Diodeus wrote: > You will need to remove the droppable for the element once the first > item is dropped on it. You car re-create the droppable later if you > want to enable that emelemt again. > > Droppables.remove(element); > > http://github.com/madrobby/scriptaculous/wikis/droppables > > > > On Oct 1, 1:26 pm, Jo Rhett <[EMAIL PROTECTED]> wrote: >> Very simple problem: my droppable items are timeslots, so they should >> only accept one draggable. I need a useful way to prevent a second >> draggable from being dropped there, but to allow the original >> draggable to be moved elsewhere. >> >> From what I can see of the API, it appears my only real choice is to >> determine this in a function for revert on the Draggable item. I'm >> fine with that, but I'm not sure how to determine that the Droppable >> is full. I can set a variable with onDrop for the Droppable, but it >> doesn't seem to be possible to unset that variable when the Draggable >> leaves for greener pastures. >> >> Has anyone else bounced off this problem before? Got any good ideas? >> >> I can post a small example if anyone wants to see that. > > -- Jo Rhett Net Consonance : consonant endings by net philanthropy, open source and other randomness --~--~---------~--~----~------------~-------~--~----~ 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@example.com 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 -~----------~----~----~----~------~----~------~--~---