Hi,
I'm a newbie on Mochikit, and I'm running into this problem.
my code is traversing the DOM to mark a number off elements as
draggable
this works like a charm, drag and drop are (more or less) working.
there are just 2 problems left for me.
1. on a successful drop, the draggable does a revert. I only want a
revert, when it's dropped outside an dropzone.
2. Somehow connecting to the draggable fails.
this is the code that's giving me the challenges!
var lis = MochiKit.DOM.getElementsByTagAndClassName("li","lidrag");
createLoggingPane(true);
for(var x=0; x<lis.length; x++){
aDrag[x]= new Draggable(lis[x],{ ghosting:true, revert:true);
connect(aDrag[x],"onstart",function(){log('dragging!!');})
//connect(aDrag[x],"start",function(){log('dragging!!');}) //did
not work too
//connect(lis[x],"onstart",function(){log('dragging!!');}) //did
not work too
//connect(lis[x],"start",function(){log('dragging!!');})
//did not work too
}
I hope someone can give me some pointers, so that I can move this
project forward!
with kind regards,
Sander Elias
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---