Hey there,
Assign the new Draggable to a variable so var myDraggable = new
Draggable(...);
if you haven't done so. Then use this variable to access the element
and what you want.
e.g.
Getting the elements id: myDraggable.element.id
or Getting the element's classes: myDraggable.element.classNames()
the latter returns an enumerable.
to get just the elements id, use $(My Element).id
remember Prototype extends dom elements, so you can use it like this.
Hope that helps.
Mr Parry.
On Jul 9, 10:31 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'd like to send the class of a Draggable element as a parameter to an
> AJAX call triggered from the Droppable. How do I access the class name
> of the Draggable?
>
> Also, how do I access the value of an Id associated with an element?
> Do I call a method on $("My Element") ?
>
> Thank you.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---