"Permission Denied" Error Message When You Access an HTML Element After Saving a File to a Disk (306673)
The information in this article applies to:
- Microsoft Internet Explorer (Programming) 6.0
- Microsoft Internet Explorer (Programming) 5.5 SP2
This article was previously published under Q306673 SYMPTOMS Internet Explorer 5.5 Service Pack 1 and later versions
display an "Error on page/Permission denied" script error message when you
access HTML elements from a script. This error occurs under the following
conditions:
- Frames are being used.
- The frame in which the script error occurs is being used to
navigate to an URL that sends back a file by using a "Content-Type" and
"Content-Disposition" header. Upon receiving the file, the user chooses to save
the file to disk.
WORKAROUND You can work around this issue by using a dedicated
(hidden) IFRAME to navigate to the ASP page that sends back the file by using a
"Content-Type" and "Content-Disposition" header:
========== file frame.htm
<HTML>
<HEAD>
<SCRIPT LANGUAGE=javascript>
<!--
function bclick()
{
thidden.value=parseInt(thidden.value) + 1;
navframe.location='download.asp'
//window.navigate('download.asp');
}
//-->
</SCRIPT>
</HEAD>
<BODY>
<IFRAME type=hidden src='' style='display: none;' name='navframe'></IFRAME>
<INPUT type="button" value="Button" id=button1 name=button1 onclick="bclick()">
<input value='0' name='thidden'>
</BODY>
</HTML>
STATUSMicrosoft
has confirmed that this is a problem in the Microsoft products that are listed
at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 9/12/2003 |
---|
Keywords: | kbfix kbIE550preSP2fix kbprb kbQFE KB306673 |
---|
|