You have to ask the database for the next ID by creating a new record  
and reading its response. That's what the Ajax Request bit was in my  
example. When you drop, it asks the database for a new widget, and  
returns the numerical ID of that new widget, then creates a cloned  
object in the Sortable with that ID and returns the original to its  
place (revert: true).


On May 5, 2009, at 2:11 PM, WLQ wrote:

> But how
> can it know on drop, what id to give.

You received this message because you are subscribed to the Google Groups 
"Prototype &" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to