OK, perhaps I'm doing something wrong, but I've tried debugging this in
an attempt to determine where my problem lies...

I have the following code that adds LI items to a UL and attempts to
make it sortable:

var resetsUL = UL({"class" : "resets"},null);
appendChildNodes(editDiv,STRONG(null,"Resets: "),resetsUL);
map(function(a){appendChildNodes(resetsUL,a.OutputLI());},this.ResetList);
MochiKit.Sortable.Sortable.create(resetsUL,{"handle" : "sortHandle"});

this.ResetList is an array of Reset objects... the OutputLI function
is:

this.OutputLI = function(){
  var myLI = LI(null,null);
  appendChildNodes(myLI,DIV({"class":"sortHandle"},this.rindex));
  appendChildNodes(myLI," " + this.VNUM);
  return myLI;
}

The map() call outputs a perfectly-good set of LI items inside the
resetsUL (I tested this before attempting to use Sortable)...

whenever the code reaches the Sortable.create() call, however, I'm hit
with an error "options has no properties" on Sortables.js line 573.  I
ran my debugger through the code and it appears line 258 calls
self.serialize with no options parameter (all options look good up
until that point) and the serialize function errors out.

I made a demo page that used Sortables before, so I don't quite
understand why this is erroring on me.  Oddly enough, even though it
errors, it does add the drag-drop signals on each LI element, so that I
can rearrange them, but every mouse movement issues a new error of
various types.

Can anyone tell me how to fix this?


--~--~---------~--~----~------------~-------~--~----~
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