简体   繁体   中英

dragover mouse event contain file info in XUL application using javascript

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

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM