IE7 and window.open issue to HttpHandler for downloads

G

Guest

I have an ASP.NET page that performs a window.open to an HttpHandler that
streams a binary file to the brower. I am forcing the save_as... dialog in
IE. My issue is that in IE6 the new window opens and the download starts.
When the download is cancelled or completed the window automatically closes,
which is exactly what I want to happen. The issue is that in IE7 Beta 2 the
window just stays open.

I've tried using a simple aspx page instead of the HttpHanlder and putting a
client-side call to window.close in the page, which does work for IE6. If I
do this in IE7 the window will close and the save_as... dialog flashes by
(gets closed too).

Has anyone seen this or know of a way to get this to work in IE7. I know
how to have a new window open with the option to download the file, but I
would rather the download just happen right away without the user having to
close the new window after the download happens.

Also, if anyones knows why IE7 seems to handle showModalDialog differently
too that would be great.

Thanks in advance,
Burt
 
Joined
Jul 15, 2009
Messages
1
Reaction score
0
help

i've the same problem with IE 7... FF is ok... but IE =\

somebody can help us??????


=?Utf-8?B?QnVydA==?= said:
I have an ASP.NET page that performs a window.open to an HttpHandler that
streams a binary file to the brower. I am forcing the save_as... dialog in
IE. My issue is that in IE6 the new window opens and the download starts.
When the download is cancelled or completed the window automatically closes,
which is exactly what I want to happen. The issue is that in IE7 Beta 2 the
window just stays open.

I've tried using a simple aspx page instead of the HttpHanlder and putting a
client-side call to window.close in the page, which does work for IE6. If I
do this in IE7 the window will close and the save_as... dialog flashes by
(gets closed too).

Has anyone seen this or know of a way to get this to work in IE7. I know
how to have a new window open with the option to download the file, but I
would rather the download just happen right away without the user having to
close the new window after the download happens.

Also, if anyones knows why IE7 seems to handle showModalDialog differently
too that would be great.

Thanks in advance,
Burt
 

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

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top