I am attempting to attach DagAndDrop behaviour to a webpage. What I want to do is intercept the file(s) dropped on the entire page, which will launch a DHML / AJAX wizard to import the dropped files into a CMS, so in order to accomplish this I have attached the DND behaviour to a node fairly close to the document root.
However, this leaves the page divided into three 'zones' as regard behaviour:
Zone 1: When dropping one or more files, no file handles (e.g. a zero length array) is passed to the callback function. The interception worked (i.e. the browser didn't navigate to the file location) but passing the files didn't. The hover callback is only invoked for mousing out, not mousing over.
Zone 2: When dropping one or files, the file handles are sometimes passed, sometimes not. hover callback is only invoked for mousing oout, not mousing over.
Zone 3: Drag and Drop behaves as expected.
I tried to further narrow down some 'zones' in my page html in order to try to isolate the problem. I had two almost identical tables detailing some data, the only difference in markup was one table had row with a button input. The DND worked when dropping on one table but not the other.
I have also ensured that the XHTML was valid, and also removed all other scripts from the page during the elimination process.
I am reluctant to post the HTML because this is a propietary CMS, but will be able to provide sanitized HTML if this would help diagnose the problem. FYI:
BrowserPlus 2.5.1p installed DragAndDrop: version 2.0.0, 1.0.1
What OS and browser are you using. I've had some problems myself with getting the dropped files on XP + Firefox 3.6 (and I think IE8) for BrowserPlus 2.5.1. BrowserPlus 2.6 fixes those problems and is scheduled to be released this week.
Also, are you using DragAndDrop 1.0.1 or 2.0? The difference is that DragAndDrop 2.0 just returns what was actually dropped (it doesn't recurse into folders). DnD 2.0 works in conjunction with the Directory service which that gives you control of recursing into files, etc.
I have tried specifiying both, and leaving the version unspecified, with identical results. I have not tried to drop folders onto the DND areas, only one or more real files, not shortcuts or references.