views:

1428

answers:

2

I'm using the Sortable component of jQuery UI. The callbacks don't seem to work at all, even with this minimalistic test:

<script type="text/javascript" src="jquery-1.3.js"></script>
<script type="text/javascript" src="jquery-ui-personalized-1.6rc4.js"></script>
<script type="text/javascript">
$(document).ready(function () {
 $("#outer").sortable({
  start: function (e, ui) {
   alert("started");
  },
  update: function (e, ui) {
   alert("updated");
  }
 });
});
</script>
<ul id="outer">
<li>apple</li>
<li>orange</li>
</ul>

I get none of the alerts when I reorder these elements.

Is my usage correct or am I perhaps misreading the documentation?

start Function(Event, ui)

Function that gets called when sorting starts.

+1  A: 

It seems that the .sortable() is having some technical difficulties according to this post. You may need to use SVN to download the latest trunk release to fix it.

Soviut
I just checked out the latest from SVN and it works. Thanks!
Ates Goral
A: 

I was able to work around this problem by including two versions of jquery simultaneously. Check it out here: http://gist.github.com/59757

Hope it helps!