Drag and drop across browser windows?
October 14, 2006 10:02 AM
Subscribe
Web dev Q: Is there a way to figure out what has been dragged and dropped from one browser window to another?
Suppose I have 2 Firefox windows. Window 1 contains an HTML page with an image on it. If I drag+drop the image from window 1 to window 2, Firefox knows that it should open the image in window 2. If the image was linked to a webpage, then it instead opens the linked page in window 2.
I'd like to be able to do the "window 2" part in my own web app. The user could drag and drop any image from any website onto my web app's page. My web app would then figure out what has just been dropped (image URL or linked page URL) and act on it, without the event propagating to Firefox's default behavior.
Is this possible? I've looked online, and it looks like the only way to do it is to have a signed Java applet, as box.net does. Any other way you can think of, using Javascript, Flash, etc.? Would a Firefox extension perhaps be an answer? Thanks for your help.
posted by shortfuse to computers & internet (4 comments total)
posted by zixyer at 11:24 AM on October 14, 2006