What info contained when dropping favorites link in browser

P

Paul.Ramsden

Can anyone tell me what information is available when I drop a link
from my favorites list on to a drop-activated html control?

I want to do something like this:

function onDrop(id) {
var info = event.dataTransfer.getData("Text");
alert("This link contains: "+ info);

etc...
}

The above works when I pull the icon from the address bar into the
activated control but favorites links do not offer either Text or URL
properties.

Thanks

Paul
 
R

Rob ^_^

Hi Paul,

I have not tried this myself, but hopefully this will give you some ideas.

1. There are two possible link file types that a user may have in their
Favorites folder - Program links (*.lnk) which are in a binary format, and
Internet Shortcuts (*.url) which are in text format and actually have an ini
file type structure. Setup up Notepad in your Send to menu and use it to
open your Favorites files in notepad to view the internal contents of the
files.

So, Forget about Program Links (*.lnk), filter them out by file type in your
OLEMouseOver code.

For Internet Shortcut files you should be able to accept the file name from
the source.files and then open an parse the dropped *.url file, though you
may have problems gaining access to the users hard disk to read the contents
of the url file.

Alternatively scan the registry for the url file type in the HKCR key and
find the Program association for the Properties context menu and incorporate
that command in your control.

Regards.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top