Hi
I want to use dragdrop.js for some grouping tasks. i am still stuck at
my first steps of experimentation. the problem is that the draggable
elements donont revert back to the original postion until clicked for
the second time.
<%= javascript_include_tag "prototype","dragdrop" %>
<%= image_tag "tab_bio.GIF" ,:id=>"image",
:class=>''droppable''>
<%= text_field ''b'',''b'',
:class=>''droppable'' %>
<%= text_field ''c'',''c'',
:class=>''droppable'' %>
<%= text_area ''a'',''a'' %>
<%= draggable_element ''b_b'' %>
<%= draggable_element ''c_c'', {:revert=>true} %>
<%= draggable_element ''image'', {:revert=>true} %>
<div id="items">
</div>
<%= drop_receiving_element ''a_a'',
:update=>''items'',
:url=>{:action=>:dropped}, :accept=>''droppable'',
:loading=>"Element.show(''loading'')",
:complete=>"Element.hide(''loading'')" %>
<div id="loading"
style="display:none">Loading</div>
Please let me know what is wrong.
thanks in advance
Shodhan