P
Pavils Jurjans
Hello,
I made a testcase of the latter described bug here:
http://www.jurjans.lv/dev/050316_dl/ (source download
http://www.jurjans.lv/dev/050316_dl/050316_dl.zip)
I am writing an application, where the users get access to files that are
1) inaccessible directly via the web, thus are streamed via ASP script
2) dynamically generated by ASP script
In both cases the browser must be decently informed about the content type
of the download and the file name so that user doesn't see unpleasant
garbage in the "File download" dialog file name field. I do this using the
following code:
Response.ContentType = "application/msword";
Response.AddHeader("Content-Disposition", "attachment;
filename="+fileName+";");
On the client side, that means that browser attempts to load a page and
actually gets a file download request, thus any page refresh should not
really happen.
To make things look smooth, I used to let this kind of downloads happen into
a hidden frame, to avoid empty page (or empty popup) flickering while
choosing between the open/save options.
However, I have discovered, that if the frameset is a popup window, then
MSIE6 in Windows XP SP2 just violently closes the popup window with the
frameset, if in one of the frames is loaded with the file-downloading
script. I did some testing and find out that MSIE6 on Win2000, and Firefox
1.0 does not act like that.
Any comments on this feature/bug?
Thanks,
Pavils
I made a testcase of the latter described bug here:
http://www.jurjans.lv/dev/050316_dl/ (source download
http://www.jurjans.lv/dev/050316_dl/050316_dl.zip)
I am writing an application, where the users get access to files that are
1) inaccessible directly via the web, thus are streamed via ASP script
2) dynamically generated by ASP script
In both cases the browser must be decently informed about the content type
of the download and the file name so that user doesn't see unpleasant
garbage in the "File download" dialog file name field. I do this using the
following code:
Response.ContentType = "application/msword";
Response.AddHeader("Content-Disposition", "attachment;
filename="+fileName+";");
On the client side, that means that browser attempts to load a page and
actually gets a file download request, thus any page refresh should not
really happen.
To make things look smooth, I used to let this kind of downloads happen into
a hidden frame, to avoid empty page (or empty popup) flickering while
choosing between the open/save options.
However, I have discovered, that if the frameset is a popup window, then
MSIE6 in Windows XP SP2 just violently closes the popup window with the
frameset, if in one of the frames is loaded with the file-downloading
script. I did some testing and find out that MSIE6 on Win2000, and Firefox
1.0 does not act like that.
Any comments on this feature/bug?
Thanks,
Pavils