> I assume this "new('items')" is actually a "Sortable.create('items')",
> because AFAIK, "new('items')" doesn't mean a thing.You're right, it does't mean anything. I tried to modify the source from this: http://demo.script.aculo.us/ajax/sortable_elements to make it work. > Hmm... This could get ugly, especially as by doing so, your > draggables/droppables ref'counting is not done properly (you don't > unregister draggables and, more importantly, droppables, as you replace How would you accomplish this? > Sortable has an experimental "tree" mode, that you can try to figure out > from the source. I believe it is expressly intended for stuff like > that. You should check it out. I couldn't find anything about this on the scriptaculous site. Just to clarify a bit, right now the processing script returns some values in a list which relate to the name that was dragged. This independent list is placed into the 'items_area' div. I would like to be able to sort these values which do not rely anymore on the initial sortable list. It should work like this: You are shown two sortable lists with one of them having a list of names while the other one is empty. Names - Bob - John Empty You have the ability to drag the names from the Names list to the Empty list. When you do so, the processing script recieves the array containing the information pertaining to the Empty list. So if you dragged Bob to the Empty list, the processing script would do something with the value of 'Bob' and return some information relating to it. This information would be placed into an unrelated list which also has the ability to be sorted. It would look like this: Names - John Empty - Bob Details -Height: 6' -Weight: 180lbs The Details list would now have the ability to be sorted amongst itself. When 'Bob' is dragged back from Empty to Names, the Details list would dissapear. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" 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/rubyonrails-spinoffs -~----------~----~----~----~------~----~------~--~---
