Madsret
2007-Dec-26 15:02 UTC
How to display what item you''ve dropped item in a sorted list ?
http://wiki.script.aculo.us/scriptaculous/page/print/SortableFloatsDemo --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Madsret
2007-Dec-26 15:05 UTC
Re: How to display what item you''ve dropped item in a sorted list ?
Sorry, accidentally posted too early. My question is: How to display what item you''ve dropped on a sorted list ? How would you extend the sorted list demo to print/alert the image ID you''ve just dropped: http://wiki.script.aculo.us/scriptaculous/page/print/SortableFloatsDemo I do know you can replace the function with function(element){... But the element.id is the sortable you dropped on, and it doesn''t seem to have some sort of ''lastValue'' property. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Andrea Franz
2007-Dec-26 18:16 UTC
Re: How to display what item you''ve dropped item in a sorted list ?
On Dec 26, 2007 4:05 PM, Madsret <mike-jEboVpg3LeQ@public.gmane.org> wrote:> > Sorry, accidentally posted too early. > > My question is: > How to display what item you''ve dropped on a sorted list ? > > How would you extend the sorted list demo to print/alert the image ID > you''ve just dropped: > http://wiki.script.aculo.us/scriptaculous/page/print/SortableFloatsDemo > > I do know you can replace the function with function(element){... > But the element.id is the sortable you dropped on, and it doesn''t seem > to have some sort of ''lastValue'' property. >You can use the onChange callback to save the dragged item and then use it inside the onUpdate callback. Otherwise you can use the LiteSortable class to have more information about the dragged item. You can find it here: http://gravityblast.com/projects/litesortable/ ...let me know if it''s what you need! -- Andrea Franz http://gravityblast.com - http://nimboo.net --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---