<%= sortable_element "lista",
 :containment => "list",
 :url => { :action => "lista_action" } %>

I don't think you can write

:containment=>"list"

you have to use the markup id's and it doesn't look like you have
anything marked up with id "list"

For your number three, I'm working on it. Eventually I want to be able
to update the scriptaculous draganddrop.js but work is getting in the
way.

Peter



On 2/27/06, Jb Piacentino <[EMAIL PROTECTED]> wrote:
> Folks,
>
> It has been a whole day spent on this but I still can't get my mind
> around the most probably very stupid/basic mistake here... First, the
> code I use:
>
> <h3>List A</h3>
> <ul id="lista" >
>   <li id="item1"> Item 1</li>
>   <li id="item2"> Item 2</li>
>   <li id="item3"> Item 3</li>
> </ul>
>
> <h3>List B</h3>
> <ul id="listb">
>   <li id="item4"> Item 4</li>
>   <li id="item5"> Item 5</li>
> </ul>
>
> <%= sortable_element "lista",
>   :containment => "list",
>   :url => { :action => "lista_action" } %>
>
> <%= sortable_element "listb",
>   :droponempty => true,
>   :complete => visual_effect(:highlight, 'listb'),
>   :containment => ["lista", "listb"],
>   :url => { :action => "listb_action" } %>
>
> Next the things that are getting me crazy:
> 1 - I CAN'T get listb_action or lista_action to get called. Why ???...
> Arghhh..
> 2 - When I drop Item 3 on top of listb, Item 4 cannot be dragged above
> Item 3.
> 3 - How can I obtain a 'duplicate-and-drop' effect, ie ensure that lista
> are only duplicated to listb rather than trully move from a to b ?
>
> Your help is greatly appreciated... This is really getting on my nerves
> (especially question 1!)
>
> Jb
>
> _______________________________________________
> Rails-spinoffs mailing list
> Rails-spinoffs@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
>
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to