I'm not sure if this can be done, but I thought I'd ask anyways. I have
some names contained in a sortable list with each name having some more
details to it. It looks something like this:

Name 1
 - Item 1
 - Item 2
 - Item 3
Name 2
 - Item 4
 - Item 5
Name 3
- Item 6

Right now I have it set up so that when you drag the name from one list
to another, you are prompted with the items belonging to it. I have it
like so:

        Sortable.create('names', {tag:'div',containment:['names','items']});
        Sortable.create('items',
{tag:'div',dropOnEmpty:true,containment:['names','items'],
constraint:false, onUpdate:function(){new Ajax.Updater('items_area',
'item file', {onComplete:function(){ new ('items');},
parameters:Sortable.serialize('items')})}})

The problem arises when I want to have the returned items contained in
a sortable list. I've tried returning the names in a list and having a
sortable for them, but that didn't work. I've tried initializing the
sortable before anything is returned but that didn't work either. Can
this be done? I hope that all made sense.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to