Javascript error 'Permission Denied'

G

Guest

Hi,

A web page Main.aspx of my web application is getting called from a
different application. Following is the code of Main.aspx:

<HTML>
<HEAD>
<title>Main</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
<LINK href="../Includes/Stylesheets/TestStyles.css" type="text/css"
rel="stylesheet">
<script language="javascript">
function Window_Load()
{
if(document.getElementById("hidValidUser").value!="") return
var
sFeatures="dialogHeight:585px;dialogWidth:900px;help:no;status:no;center=yes"
window.showModalDialog("Search.aspx",this,sFeatures)
}
</script>
</HEAD>
<body MS_POSITIONING="GridLayout" onload="Window_Load()">
<form id="frmMain" method="post" runat="server">
<table width="100%">
<tr>
<td><asp:Label ID="lblMessage" CssClass="ErrorMessage"
Runat="server"></asp:Label></td>
</tr>
<tr>
<td><input id="hidValidUser" type="hidden" runat="server"></td>
</tr>
</table>
</form>
</body>
</HTML>

The page is working properly on all machines, except for two machines where
it is
giving following error:
Line: 14
Char: 4
Error: Permission denied
Code: 0
URL: http://myapp.mydomain.com/module1

Line 14 is the first line of if condition of Window_Load() method.

All the machines are using IE 6.0, SP2
Automatic Configuration Script is also blank in LAN Settings of IE.
Popup blocker is kept off.
The machines having problem can access other pages where JavaScript is used.
Both the pages, Main.aspx and Search.aspx are in the same
domain.

Is this something related with browser setting?

Thanks,
ABN
 

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

Members online

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,054
Latest member
LucyCarper

Latest Threads

Top