Yeah, I just threw it together as cheap-and-cheerful when I read your message to see if it would work.
I look back to my pre-prototype/scripty days and think about how much work coding used to be. To think we can do stuff like this in a few line of code cooks my brain. On Jul 4, 9:37 am, Walter Lee Davis <[EMAIL PROTECTED]> wrote: > Thanks very much, this helps a lot. > > This snippet will need more work for my application because it allows > for duplicate IDs. I'll probably get the ID from the database, and > save the newly-dropped object there before re-initializing the sortable. > > But if anyone can clarify -- how would you use Element#identify in > this context? That would seem to be what it is built for. > > Walter > > On Jul 3, 2008, at 2:01 PM, Diodeus wrote: > > > $("fList").insert(new Element("li", { id: $(dragName).id+"_" })) > > $($(dragName).id+"_").innerHTML = $(dragName).innerHTML --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---