Grzesiek Slusarek
2005-Oct-14 05:36 UTC
[Rails-spinoffs] droping element and effect "of comming from nowhere"
Hello everyone. I''m using drag and drop on my site, I''v notice strange effect about droping. When I hold element over the droppable area, and drop on it, i see that element not exacly drop on the droppable area, I see something like element coming from outside of the screen, or coming from diffrent position, it''s look like element slide and then is dropped on the droppable area. I haven''t seen anything like this in demo on http://wiki.script.aculo.us/scriptaculous/show/Demos but i wrote my site looking on tutorial and i don''t what i''m doing wrong. Is it my fault or i don''t know maybe error in library. I''m using prototype 1.4.0 and scriptacuolo 1.5.rc.3 Here is sample of my code: new Draggable(''element'', { handle: ''subelemnt'', revert:true }); Droppables.add("droparea", { onDrop: function(element) { //here si the code TargetParent = Target.parentNode; ElementParent = element.parentNode ElementParent.appendChild(Target); TargetParent.appendChild(element); }, hoverclass:''aktywna-t'' } ); Thanks for any help Gregor ---------------------------------------------------- W dzie? i w nocy naKlubowo! kliknij: http://klik.wp.pl/?adr=www.naklubowo.wp.pl&sid=534