On Dec 26, 2007 4:05 PM, Madsret <[EMAIL PROTECTED]> 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 [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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to