Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

"Permission Denied" Error Message When You Access an HTML Element After Saving a File to a Disk


View products that this article applies to.

This article was previously published under Q306673

↑ Back to the top


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.

↑ Back to the top


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>
					

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

↑ Back to the top


Keywords: KB306673, kbqfe, kbprb, kbie550presp2fix, kbfix

↑ Back to the top

Article Info
Article ID : 306673
Revision : 3
Created on : 9/12/2003
Published on : 9/12/2003
Exists online : False
Views : 444