Michael Hammac
2005-Aug-12 14:33 UTC
[Rails-spinoffs] OnDrag callback. Is there such a thing?
I''ve asked this question before but posted it at the
wrong place. Anyways, I was trying to find out if
there is an OnDrag callback that I can use in
DragDrop.js; something that is called as soon as the
draggable is moved from its position, similar to the
startDrag, cancelDrag and endDrag callbacks available
in rico.js (www.openrico.org). If there is such a
callback, could you please show me a quick 2 line
implementation client side.
I''ve already tried this while creating the draggable
like so:
new Draggable(''dragthisBox'',{revert:true,
startDrag: function(element) {
//$(''dropText'').innerHTML += ''<br /> You
moved.'' +
element.id;
alert(''activated.'');
}
});
but it doesnt work.
Any help would be appreciated.
Thanks!!
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Apparently Analagous Threads
- Draggable with auto-scroll
- generic onDragStart onDrag and onDragFinish events extracted from scriptaculous?
- Scrollable DIV causes flicker in FF - SlideDown & SlideUp
- Branch 'interpreter' - 18 commits - libswfdec/swfdec_image.c libswfdec/swfdec_image.h libswfdec/swfdec_js.c libswfdec/swfdec_js_color.c libswfdec/swfdec_js_sound.c libswfdec/swfdec_pattern.c libswfdec/swfdec_scriptable.c libswfdec/swfdec_script.c
- OpenRico LiveGrid or similar
