Caveat: I've never used Sortable, but as no one's jumped in yet...

If you think about what Sortable is doing, you figure it has to hook
into various events on the items being sorted.  In fact, the
description in the documentation[1] says it's "a quick way to
*initialize* many Draggable elements in a container element" (my
emphasis).  So I would hazard a guess that you have to re-init if you
update the contents of the container.  E.g., just call Storable.create
again (as that will -- again according to the docs-- implicitly call
Sortable.destroy if the container is already a Sortable).

But it's a guess.

[1] http://github.com/madrobby/scriptaculous/wikis/sortable

T.J. C

On Oct 28, 1:33 pm, Benjamin <[EMAIL PROTECTED]> wrote:
> I tried replacing the reload() function by :
> function reload()
> {
>         var ul= $('my_ul');
>         ul.update('<li id="li_3">test 3</li><li id="li_4">test 4</li>');
> }
> without any success.
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 prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 

Reply via email to