views:

240

answers:

3

I'm writing a XUL application using JavaScript for the coding. I would like to be able to drag files onto a control in this application and, when dropped, have them show up.

This seems like it would be almost exactly like the tutorial here, but when I break in the drag and drop event handlers in a debugger, the dataTransfer member of the event isn't there!

How should I be doing this?

Thanks, Nathan

+1  A: 

These features were added in Firefox 3.1, and XULRunner 1.9.1, so make sure you are using the correct version. Be aware these builds are still in beta.

The old API for drag and drop is here.

Zach
A: 

Good call. I completely failed to notice that the article I was looking at didn't apply to what I was using.

Thanks!

Nathan
A: 

Hello is there any tutorial for xul dnd?