Slava Bogdanov
Posts: 2
Joined: 2011-09-18
|
Hello!
I need to handle all downloads in IE in my extension and decide - continue download as usual or run external app to download it.
The flow should looks like:
1. User clicks a link or opens a page
2. If IE can not show the page (it is not html or another supported format), but can download it, then my extension should get an event
3. My extension asks (by HTTP GET request) my webserver with URL of file to download
4. Depending on answer from my server extension should continue download as usual, or start external software.
The questions is:
1. To what event I should subscribe to handle all downloads? FileDownload (http://msdn.microsoft.com/en-us/library/aa768284(v=VS.85).aspx ) looks good, but it have no URL of the file as parameter. In BeforeNavigate2 I do not know how to detect will document be loaded into window or downloaded into file...
Thanks in advance!
P.S. I've purchased Add-in Express for IE. |
|
Andrei Smolin
Add-in Express team
Posts: 18993
Joined: 2006-05-11
|
|