luciano a écrit :

> Hi all!
> Im trying to use Mochikit.Sortable but i want to trigger my actions
> when i finally drop the element, because if i use onchange, the
> function is called each time the element is surfing betwen the other
> sortable elements.
>
> AFAICsee there is a ondrop function in a dropp'able element, so im
> wondering if it is possible to Mochikit.Sortable.Sortable.create to set
> this ondrop function as an option.

This is not exactly (I think) what you want. You should look at the
'onUpdate' option of create, it's called every time the serialization
of the Sortable change. To customize the serialization, use the format
option (it's a regexp checking id of items).

> Aditionally im ussing <div>s instead off <li>s, and affter sorting, i
> was not aviable to find the new order trougth childNodes nor
> nodeWalk(), both returns me the <div>s in the original order, but
> visually sort works ok.

Strange... I see no reason why it should not work with childNodes. If
you can make a simple example reproducing the problem it would be
great.

> Im ussing the svn versión of Mochikit (i update almost every day)
>
> Thanks to mochikit developers, it cracks the earth.

Glad to see a happy user :).

-- 
Thomas


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" 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/mochikit
-~----------~----~----~----~------~----~------~--~---

Reply via email to