Sortables bugs
Sortables bugs
Hi,
Trying to use Sortables from the new jQuery UI and I'm having several
problems. I've downloaded only draggables, droppables and sortables via
the UI website and am running jQuery 1.2.1. I'm using sortables to
re-order an unordered list.
First of all, I can't find any callback functions. I need a function to
fire whenever the user re-orders the list items. I've tried various best
guesses including trying onChange from the Interface library and they
don't work. I had some success firing an alert via sort, start and stop
but the alert appeared multiple times and then I got JavaScript errors.
Next up, I tried to disable the smooth slide back into place, so it just
snaps back. I tried smooth: 0, smooth: false, and smooth: "0". smooth: 0
worked but whenever I had dragged an element and dropped it, I got this
error in Firebug:
this.parentNode has no properties
Apparently in line 11 of jquery.js but I'm using the packed version so
this won't be accurate. The list item in question is then no longer
draggable and this error re-occurs whenever I click to try and drag the
item again.
Occasionally during the animation back into place, if I drag another
list item they seem to get "stacked" on top of each other and Firebug
goes crazy printing the same error message quoted above several times.
Are these user error or teething problems? I'd appreciate fixes if any
are available. Thanks!
Regards,
Michael Price