views:

40

answers:

1

I have an HTA that loads up an external webpage inside a nested IFRAME. This webpage (which I don't have control over) throws an "Access Denied" error in my HTA asking the user if they "want to continue running scripts on this page". What I want to do is have my HTA suppress all scripting error messages regardless of where they originate

Here's a very basic idea of how my setup is working:

<html>
<head><HTA:APPLICATION ... ... </head>
<body>
   ...
   <div id="navigation">...</div>
   <div id="browsers">
      <iframe APPLICATION="yes" src="http://myserver/browse.php?src=http://www.example.com/"&gt;
         <!-- contents of http://myserver/browse.php?src=http://www.example.com/ -->
         <html>...
         <body>
            <div id="titlebar">...</div>
            <iframe APPLICATION="no" src="http://www.example.com/"&gt;
               <!-- contents of http://www.example.com/ with js that causes error -->
            </iframe>
         </body>
         </html>
      </iframe>
      <iframe APPICATION="yes" src="http://myserver/browse.php?src=somethingelese"&gt;&lt;/iframe&gt;
</div>
</body>
</html>

And here is a screenshot of the error: alt text

A: 

As far as I know there isn't a way to suppress errors like that. If you have access to their registry or group policy here is the relevant Registry Value (for IE naturally) that disables that popup:

Key: HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main

Name: Disable Script Debugger

Type: REG_SZ

Value: no

WSkid