views:

20

answers:

1

I need to pull information from a web site. The user drags the address from IE to a C# win-form application. The web page they are dragging is not accessible by the address alone, saving the page to a bookmark brings me back to a useless page. How can I force a drag event to save the page to a local html file, and store that local file location in my win-form app?

A: 

This might be useful to you: HTML5 Drag & Drop - Data Transfer Types

jnpcl
Unfortunately the text content is just the address of the link, and the html content is the address of the link.
Lumpy
You can set the value of the text content.. from the .js source: `.setData('text/plain', 'Hello world!');`
jnpcl
Note that you'll need to create a draggable object for the user, rather than having them drag the address.
jnpcl
I don't control the web page. So I'm guessing this is not an option.
Lumpy
If you don't have control over the website and the link does not lead to the wanted information then the link is simply not enough information to get the website content you're looking for. If you really need to do this the way you described, you might consider writing an IE-plugin - but i'm not recommending that...
Simon Ottenhaus