"Access is denied" Javascript error

S

Sam ONeill

Hi there

I am developing an ASP application that will always run under IE
version 6 or later and I
have come accross a problem which only occurs if the user has Service
Pack 2 installed.

My application provides the user with a View Document button and if
they press it client-side Javascript makes a window.open() call to open
a popup window and display the selected document which may be on the
user's hard drive or on the server itself. The type of documents
displayed will always be one of the following
doc,.xls,.tif,.gif,..jpeg or .txt so no Javascript content in them.

This all works perfectly under service pack 1 but under Service Pack 2
I get a Javascript page error at the bottom left hand corner of the
page which says the following:

Problems with this web page might prevent it from being displayed
properly......

Line: 40
Char: 3
Error: Access is denied
Code: 0
URL: http://......

When the app tried to execute the window.open().

My application also allows the user to view the file in spliscreen mode
so that the document appears in an iframe on the right side of the
screen instead of in a popup and then I don't get an error but the file
does not appear in the IFrame.

Anyone any ideas how to resolve this?

Many thanks
Sam
 
S

Sam ONeill

nass said:
:
-

Hi there

I am developing an ASP application that will always run under IE
version 6 or later and I
have come accross a problem which only occurs if the user has Service
Pack 2 installed.

My application provides the user with a View Document button and if
they press it client-side Javascript makes a window.open() call t
open
a popup window and display the selected document which may be on the
user's hard drive or on the server itself. The type of documents
displayed will always be one of the following
.doc,.xls,.tif,.gif,..jpeg or .txt so no Javascript content in them.

This all works perfectly under service pack 1 but under Service Pac
2
I get a Javascript page error at the bottom left hand corner of the
page which says the following:

Problems with this web page might prevent it from being displayed
properly......

Line: 40
Char: 3
Error: Access is denied
Code: 0
URL: http://......

When the app tried to execute the window.open().

My application also allows the user to view the file in spliscree
mode
so that the document appears in an iframe on the right side of the
screen instead of in a popup and then I don't get an error but th
file
does not appear in the IFrame.

Anyone any ideas how to resolve this?

Many thanks
Sam




--
Sam ONeill-

Hi Samy,
I think you are well aware of the security feature been implemented i

Service pack two SP2 and the po-up blocker ..etc.
Have a look at this and see what you make of it:
http://support.microsoft.com/kb/886184
http://support.microsoft.com/kb/221244
I would like to suggest to have a look into the Security settings o
the
Client browser and see the settings for handling Java, applets an
so...
But be aware of the security downside if you lower your security an
the
user is useless or connecting to the open web?.
Always do the test on individual machine first.
HTH.
Regards,
nass

Hi Nass

Thanks for that yes I have seen the first report (886184) and believ
this is the closest to my problem so will have to contact MS for th
hotfix I think.

By the way its not a popup blocker issue as I disabled it to make sure
I also tried giving the web site a low security level to see if thi
helped and it didn't.

If the hot fix from MS works I will post back here so people will n
how to resolve this in future.

Thanks
Sa
 

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