Hi
Scriptaculous is awesome. Within a couple of hours I''ve been able to
get
heaps done.
My one problem is that I can''t seem to get the id of the object being
dragged.
Here is the code I am using:
new
Draggable(''Idea'',{handle:''IdeaHandle'',change:function(element){$(''test'').innerHTML
= encodeURIComponent(element.id)}});
yet the way I reference the id works for a droppable:
Droppables.add(''IdeaPad'',
{onDrop:function(element,dropon){alert(''id:'' +
encodeURIComponent(element.id) + '', dropon :'' + dropon.id +
'', pos:'' +
element.style.left)}})
Any ideas?
--
Aneesha
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs