Image URL via Dragging
David Thompson
dthmpsn1 at illinois.edu
Fri Jul 25 11:28:43 PDT 2008
>I've been trying to put together a procedure that can obtain the url
>of an image if the image is dragged from a web page to a Panorama
>file. The idea would be to then use webimage( to display the image
>within a Panorama form. A lot of people don't know how to copy the
>url of an image so it would be a huge interface help.
>
>So far I've found no way to detect the path (url) although Panorama
>definitely knows that something was dropped.
>
>Is this a hopeless pursuit?
If I drop an image from a web page in Safari or FireFox onto the
Dropalyzer, it shows eleven flavors from the FireFox drop, and twelve
from the Safari drop. Both cases include "url " and "TEXT" flavors,
both of which contain the url. Those are the browsers I have to test
with, and it is the application that initiates the drag (in this case
the browser) that is responsible for determining how many flavors
there are, what their names are, and what data they contain. I can
only say that for Safari and FireFox, it should be fairly simple, and
you can steal most of the code from the Dropalyzer.
Dave
More information about the Qna
mailing list