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).

Walter

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 & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to