BUG: content-disposition header + frame = browser close in IE6 SP2

G

Guest

Sending the "content-disposition: attachment; filename=filename" header to
any frame causes the browser window to shut down after the open/save dialog
closes when the browser is IE6 on Window XP SP2.

Other versions of IE are fine. This has to be a bug. I feel like SP2 was
rushed out the door, as this is one of many bugs I have run across.

My workaround is execute the following JavaScript when the HtmlInputButton
that starts the download is clicked. The JavaScript changes the form target
to the parent window, posts back, and then changes the form target back to
_self.

window.document.forms[0].target = window.parent.name;
__doPostBack('MyButton','');
window.document.forms[0].target = '_self';
 
G

Guest

Hannagan said:
Sending the "content-disposition: attachment; filename=filename" header to
any frame causes the browser window to shut down after the open/save dialog
closes when the browser is IE6 on Window XP SP2.

Other versions of IE are fine. This has to be a bug. I feel like SP2 was
rushed out the door, as this is one of many bugs I have run across.

My workaround is execute the following JavaScript when the HtmlInputButton
that starts the download is clicked. The JavaScript changes the form target
to the parent window, posts back, and then changes the form target back to
_self.

window.document.forms[0].target = window.parent.name;
__doPostBack('MyButton','');
window.document.forms[0].target = '_self';
 

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