I have an html page with a certain input field and I want to add the following functionality.
The user should be able to drag and drop a resource onto the field. The result of this action should be that the url of the resource appears in the field.
The resource could be a local file, resulting in a url like file:///home/me/document
or file://c:\windows-files\document.doc
.
The resource could also be a web resource, resulting in a url like http://host.nl/document.doc
or even ftp://host.nl/document.doc
, although at this point I'm not really interested in ftp resources. I'm assuming a dnd-action of a web-page url from the address bar of a web browser, or a dnd-action of a file on the client machine from e.g. the desktop.
As usual for web apps, I want this functionality to work on most platforms. (Linux/Win/MacOS, Firefox/Chrome/Safari/IE/Opera)
The paradigm is html and JavaScript.