i want to be able to drag divs and drop them onto other divs. i want
the behavior to be as follows: if the draggable div is released too
far away from one of the droppable divs, then it goes back to its
original position. however, if it is sufficiently close to one of the
droppable divs then it moves directly on top of that div and stays
there. this is the way dojo works (with bugs).

i just started looking at this stuff today, but it seems to be
impossible to do this with the code currently in dragdrop.js in the
latest scriptaculous release. so i have three questions:

1. am i wrong? is there an easy way to do this with dragdrop.js?
2. i was not familiar with prototype or scriptaculous before today, so
i have faced a little bit of a learning curve. some of these would be
easier if the code were commented, since the amount of comments right
now is right around 0. i've started to insert jsdoc comments in
dragdrop.js for the sake of my own sanity. perhaps i could provide
these to everyone else as well?
3. if there is no easy way to do this with the functionality in
dragdrop.js, i am going to add the functionality myself; i can also
add a functional test. perhaps i could provide this code for the
benefit of other developers also (?)

thanks,
adam

--
[EMAIL PROTECTED]
312-375-9879
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to