[Seaside] Sortable refresh?

Lukas Renggli renggli at gmail.com
Wed Apr 14 11:25:49 UTC 2010


You add another callback to the ajax action. Something along


    html jQuery ajax
       ... "passenger callback"
       script: [ :s | s add: ((s jQuery: #myListId) html: [ :h | self
rerenderTheListBody: h ] ]

Lukas

On 14 April 2010 12:16, Stephan Eggermont <stephan at stack.nl> wrote:
> In the jQuery-UI sortable demo, how do I refresh the drawn list? (Seaside
> 3.0a5).
> In addition of rendering the listitem with: each, I want to render its
> position in the
> list. Sortable has a refresh, that doesn't behave as I thought it would.
>
> Stephan
>
>        html unorderedList
>                script: (html jQuery new sortable
>                        onStop: (html jQuery ajax
>                                callback: [ :values | items := values ]
>                                passengers: (html jQuery this find: 'li')));
>                with: [
>                        items do: [ :each |
>                                html listItem
>                                        class: 'ui-corner-all';
>                                        passenger: each;
>                                        with: each ] ]
>
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>



-- 
Lukas Renggli
www.lukas-renggli.ch


More information about the seaside mailing list