• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 192
  • Last Modified:

Drag and drop picture from one web page to the next

Hi all, I've rated this one 250 points because I've searched through google and online web resources and can't find what I need - at this stage I'm not even sure if this can be done through web browsers or it's something that can only be achieved through developing an app. Anyway, here goes.

I have two web pages (opened in seperate browser windows), as follows:

1. Web Browser window 1(WBW1): my ASP page, with a form: one text input field and a submit button.

2. Web Browser window 2 (WBW2): any page from the web

What I would like to achieve is to be able to click on an image in WBW2, drag it across to the input field of WBW1, drop it in the form and have the html address of that picture appear in the input field.

Is this possible? When you try and do this now all that happens is that you get the image appearing in WBW1.

Hopefully I haven't been confusing in my explanation. Thanks for any assistance.
1 Solution
>Is this possible?

I'm sure it is not possible, however I'll be happy if I'm proved wrong.

Not possible. You don't change the web page in EITHER window, and that's the ONLY way you're going to make a change in the file that's on the web server.
you could accomplish this with, great difficulty, by hacking your browser.  You would need to add a flag to record the right mouse click status and then add some routine which is executed when the mouse begins to move.  If the right-button-flag is set when this routine is called then execute the routine that is called when you left click on a page and then again for choosing the properties option on the popup menu.  You would then need to read the url from the properties dialog and save this into some global variable ........ etc, etc.......... it would be very dificult, but not impossible.

A simpler option is just to right click the image yourself and copy the url and paste it into your form :)
forget what i just said........i just tried what you asked in my browser, Firefox, and it worked!

just replace your browser with firefox, or possibly some other by mozilla.
georgep7Author Commented:
AWESOME - thanks!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now