I couldn't find an email address for the author of Interface, but I
can't seem to get Draggables to work right.
- Draggable items sometimes are added outside of their container.
Sometimes reproduecable, it seems that if you drop them near the bottom
/ on the bottom edge of the container, they get dumped onto the end of
the DOM. Also happens in other places, see below.
- My onchange function is never called.
- The 'containment' parameter doesn't work. If I set it without doing
anything special to my container, the draggable starts dragging at the
wrong place. If I set my container to either relative or absolute
positioning, the element moves around inside it correctly, but doesn't
seem to drop correctly. The other sortables don't move apart to make the
drop space. In both scenarios, when the element is dropped, it gets
removed from the container and appended to the DOM.
Has anyone made this damn thing work? I'm using jQuery 1.0.3 and
whatever the latest version of Interface is.
Markup:
<ol class="topx list-1">
<li id="topx-1-1" class="sortable editable">Foo</li>
<li id="topx-1-2" class="sortable editable">Bar</li>
<li id="topx-1-3" class="sortable editable">Baz</li>
<li id="topx-1-4" class="sortable editable">Quux</li>
<li id="topx-1-5" class="sortable editable">Gazonk<li>
<li id="topx-1-6" class="sortable editable">Bop</li>
</ol>
<script type="text/javascript"
src="/shared/jquery/jquery.jeditable-packed.js"></script>
<script type="text/javascript"
src="/shared/jquery/interface/iutil.js"></script>
<script type="text/javascript"
src="/shared/jquery/interface/idrag.js"></script>
<script type="text/javascript"
src="/shared/jquery/interface/idrop.js"></script>
<script type="text/javascript"
src="/shared/jquery/interface/isortables.js"></script>
<script type="text/javascript">
$('ol.topx').Sortable({accept: 'sortable',
opacity: 0.75,
containment: 'parent',
onChange: function() { alert('AAR'); }});
$('ol.topx > li.editable').editable({onblur: 'submit'});
</script>
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/