Unfortunately I'm not quite competent in java script.I think I can't get that managed on my own.
On 29 Mrz., 12:05, ColinFine <[email protected]> wrote: > On Mar 28, 2:21 pm, HotShot <[email protected]> wrote: > > > I would like to know if there is a way to limit a drop area to a > > certain number of items. When this limit is reached the drop area > > should no longer accept any draggables. Already dropped draggables > > should be removable from the drop area so that new draggable can be > > dropped. > > > Is there a way to realize that? > > Not automatically, as you are talking about behaviour that changes > between one drag and the next. > > But it's not too hard to program it. What I would do is have a > function which examines the drop area and adds/removes a class 'can- > accept' depending on whether it is full or not. > Then set the 'accept' property in your Droppables call to 'can- > accept'. > > You will presumably set the 'can-accept' class appropriately when you > first generate the page (or call the function to update it when you > have loaded the page), and call the function at the end of every > 'onDrop'. > > Removing an existing drop is something you will have to program > yourself. -- 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.
