The documentation on the sortables stuff sucks - but then, it isn't really considered a core piece of MK so I guess there is little motivation to fix the problem.
Here is a concise example of the technique I am using, for better or worse: var m_CurrentSortable = null; function CreateSortables() { MochiKit.Sortable.create(elementForSortableList, {onUpdate: function() { log("Here's the id: ", m_CurrentSortable.element.id); }}); } connect(Draggables, "start", function (draggable) { m_CurrentSortable = draggable; }); Supposedly you can attach to an "ondrop" event, but I can't get that to work right. According to the sortables documentation page, "other options are passed to the Draggables and Droppables objects created. Refer to MochiKit.DragAndDrop for more information." Hope that helps, Jason Bunting > -----Original Message----- > From: mochikit@googlegroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Urbanite > Sent: Tuesday, September 04, 2007 8:56 PM > To: MochiKit > Subject: [mochikit] Sortable List - Dropped Element ID > > > I am considering trying MochiKit for use in a sortable list scenario > that involves several lists on a single page. Idea being that when an > element is dropped from one list to another, the id of the dropped > element becomes available for use in an Ajax callback to update a > database. > > > Problem I am running into is that in reading the docs on the > MochiKit.com site, I have found mention of an "Observer", but no > direct API reference on how to use it. Can one of you offer a bit of > help on the observer thing? > > > Core question is how to get the id of a dropped list member. > > > > > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.485 / Virus Database: 269.13.5/989 - Release Date: 9/4/2007 > 5:54 PM > No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.485 / Virus Database: 269.13.5/989 - Release Date: 9/4/2007 5:54 PM --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MochiKit" group. To post to this group, send email to mochikit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~----------~----~----~----~------~----~------~--~---