I have problems getting some of the the callback functions to work.
'stop' and 'update' refuse to work for me.
here's some example code i'm using:
<ul id="List">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
<li>Item 4</li>
<li>Item 5</li>
</ul>
$j('#List').sortable({
start:function () {
console.log('startdrag'); // traces
},
sort: function () {
console.log('sorting'); // traces
},
update:function () {
console.log('sth changed ...'); // silence ...
},
stop:function () {
console.log('stop drag'); // silence ...
},
change:function () {
console.log('sth changed ... still draggin ?'); /*traces ... could be
used instead of 'update' but would be a heavy alternative ... */
}
});
in addition to this, i'm getting constantly errors while trying out the
demo under:
http://docs.jquery.com/UI/Sortables/sortable#options
firebug keeps tracing errors after dropping one of the items ... i had
to reload the whole page to stop this.
micha