Sortables not working at all
Hi.
I've just installed jQuery UI on my webpage. First, I downloaded
several of the available plugins. I've created a sortable UL
I am able to drag the elements around. However, when I let go, I am
getting hundreds of errors like:
self.pos has no properties
[Break on this error] $.extend($.ui.sortable.prototype,{plugins:
{},currentTarget:null,lastTarget:null,...
jquery-ui.js (line 58)
this.parentNode has no properties
[Break on this error] eval(function(p,a,c,k,e,r){e=function(c)
{return(c<a?'':e(parseInt(c/a)))+((c=c%a...
jquery.js (line 11)
The script I used for creating the sortable, just for testing, looks
like
$('#mlist').sortable({ containment: 'parent', stop: function()
{ alert('stop'); } });
And my list looks like
<ul id="mlist" class="sortable">
<li class="sortableitem" id="1">menu item</li>
...
</ul>
All of this shouldn't really matter, because I just opened the jQuery
UI sortables demo page, and it does the same thing there. After I let
go dragging, it splits all those errors on me.
I am using Firefox (the latest version) and also Safari 3 beta.
Please advise what to do.
Thanks,
Mike