I tried to get the  coordinates of a draggable_element.
I found in this topic a way to get the coordinates but i don''t know
what
i must set in the action reposition
at the moment i only have this
<div id ="dragDIV" class ="picture box">Verplaats de
afbeelding naar de
gewenste plaats</div>
<%= draggable_element :dragDIV, :snap => 10, :ghosting => true
 %>
<%= drop_receiving_element("dragDIV",
:url => { :action => "reposition" },
:loading => visual_effect(:highlight),
:update => ''admin_status_message'',
:with => "''id='' + encodeURIComponent(element.id)
+ ''&x='' +
encodeURIComponent(Element.getStyle(element,''left''))
+ ''&y='' +
encodeURIComponent(Element.getStyle(element,''top''))
+ ''&w='' +
encodeURIComponent(Element.getStyle(element,''width''))
+ ''&h='' +
encodeURIComponent(Element.getStyle(element,''height''))")
%>
-- 
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---