![]() | dragging elements between 2 <div>s |
|
26 Mar 2009, 02:28
Daniel Woodson (1 post) |
Just starting to play w/ scriptaculous and I’m really enjoying it. My question is this: I have one div containing draggable list elements. I have another (empty right now) div located just to the side of the first one, with a little space between. When I try to drag elements from the first div to the second, they vanish as they’re leaving the first div. I’m sure it’s a problem w/ a z-index, but I haven’t been able to locate any usable information regarding that, so I thought I’d ask here. Any ideas? |
|
27 Apr 2010, 18:09
James Gough (2 posts) |
I’m having the same problem. Reading the docs, it would seem that using this should work:
<div id="draggable">drag me</div>
<div id="droppable">drop here</div>
<script>
new Draggable ('draggable', {revert: 'failure'});
Droppables.add ('droppable');
</script>
...but it doesn’t; the draggable element always returns to it’s original position. Very frustrating!!!! |
| You must be logged in to comment |

