I am developing a desktop app (Java) & a web app (JSP) and we are looking for a way to drag and drop a hyperlink (to a pdf file) on the web app directly into the desktop app so that the desktop app can open and display the file. I have seen "uploader" examples where information from dekstop app is shared with the web app, but I don't know how to communicate the hyperlink information from the web app to the desktop app.
I am totally new to Adobe Flex/Air. Can someone point me to the right direction? Information on how information can be exchanged between desktop and web or some examples would help a lot. Thank you in advance.
Comments
I am no browser expert, but this definitely is dependent on the browser and then on AIR.
When you drag a link outside of the browser it is expecting to but text somewhere. With AIR you could easily program it to accept text drop. But if you are dragging an image then the effects will certainly be different and you may end up with a link to the image (or the actual image).
No code provided, just my thoughts on it.
I am sure this is simple-minded, but have you tried using 'copy and paste' commands within the routine? If you can capture the hyperlink information (CTRL+C) into the Windows clipboard from the web app and you can paste (CTRL+V) into the desktop app, wouldn't this work?
CTRL+C = ^C or in ASCII is 03
CTRL+V = ^V or in ASCII is 22
Just a thought ...