The only way that I've been able to get the IDs is like so:

onChange: function(){

var text = Sortable.serialize("list");
var first_id = (text.substr(8,4));
var second_id = (text.substr(21,4));

}

In this case the lengths of the IDs is 4 digits. The problem with the
above is that you can't get the ID of the item that was added to the
list the most recently. I'm sure there's a better way...


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" 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/rubyonrails-spinoffs
-~----------~----~----~----~------~----~------~--~---

Reply via email to