Can this be done with the sortable.create? Or combinded with. Sent from my iPhone
On 1 Feb 2009, at 16:35, Walter Lee Davis <[email protected]> wrote: > > In your Droppable, you have the onDrop callback function to play with. > <http://wiki.github.com/madrobby/scriptaculous/droppables> > > From that page: > Droppables.add('shopping_cart', { > accept: 'products', > onDrop: function(element) { > $('shopping_cart_text').update('Dropped the ' + element.alt + > ' on > me.'); > } > }); > > You could make this: > Droppables.add('shopping_cart', { > accept: 'products', > onDrop: function(element) { > element.addClassName('foo'); > } > }); > Walter > > On Feb 1, 2009, at 8:22 AM, [email protected] wrote: > >> when you create a sortable list when dragging an item how do you get >> the id of the item that has been dragged then dropped? >> >> What i'm trying to do is add a css class to the item that has been >> dropped? >> >> Is that even possbile? > > > > --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---
