Ruby Forum Rails Spinoffs > onUpdate not working with ghosting = false

Posted by Scade Cadigan (Guest)
on 15.05.2008 09:36
(Received via mailing list)
Hi!
And sorry for my poor english ;-)

I'm actually trying to set up a sortable list.
Everything was working fine until i tried to use the onUpdate listener
to save the order of my list.
If i do this:

<script type="text/javascript" language="javascript" charset="utf-8">
// <![CDATA[
Sortable.create('mylist', {ghosting:true, onUpdate: function()
{ alert(Sortable.serialize('mylist')); } });
// ]]>
</script>

It works fine. But if i set ghosting to false, no more alert :-(

Could you help me please?