473,406 Members | 2,619 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

IE access denied when managing windows

Hi

I have an Intranet webpage starting with a mainpage from which the user
can open a new window using a link that is calling a function:

function openWindows(){
var left, top;
width = (window.screen.availWidth/2)+130;
width2 = (window.screen.availWidth/2)-130;
height = (window.screen.availheight);
var settings= 'toolbar=no,location=no,directories=no,'+
'status=yes,menubar=no,scrollbars=no,resizable=yes , top=0, left=0, height='+height+',width='+width;
bogf = window.open('Kontering.asp?ro=false','',settings);

var settings= 'toolbar=no,location=no,directories=no,'+
'status=no,menubar=no,scrollbars=no,resizable=yes, top=0, left='+width+', height='+height+',width='+width2;
bilag = window.open('EGViewer.asp? ','picture',settings);
}



One window contains data, and one contains a picture. The user can edit data and save them.
When saving I use a

window.opener.top.content.location.reload(true);

to refresh the main window. After that the user can close the data window
by clicking a button, and then I would like to close the picture window as well
as the data window.

I works fine if the main page has not been reloaded ( = data window not saved ) but if it has been reloaded, I get a javascript access denied trying to reach the picture window.
This happens in IE 6.

My function to close the picture window:

function ClosePicture(){
if(eval('window.opener. picture ')=='[object]'){ // this to avoid then 'access denied' error
window.opener. picture.close();
}
}

Does anyone have any ideas ?
And what about IE7 ?

Regards
Chrisser
Nov 7 '06 #1
4 3979
vssp
268 100+
IE 7 same as in html fielads are passed the name and id values its working fine

vssp
Nov 7 '06 #2
IE 7 same as in html fielads are passed the name and id values its working fine

vssp
Sorry, but I don't understand ???

Chrisser
Nov 7 '06 #3
AricC
1,892 Expert 1GB
Check this thread.


HTH,
Aric
Nov 7 '06 #4
Check this thread.


HTH,
Aric

Hi
Thanks, but it does not seem to be my problem( I have just tried the work-around but it's the same ), my problem is that I can't reach my popup-window at all if the main-window has been reloaded ( its like it never has existed ), if the main-window has not been reloaded I have no problems reaching and closing the popup. I seems that the connections between my windows somehow is broken.

Chrisser
Nov 8 '06 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Fabian von Romberg | last post by:
Hi, I have installed Sql Reporting Services on 2 machines, one is WIN 2000 PRO and the other one is WIN 2000 ADV. SERVER. When I try to access a report using the webbrowser, I get the following...
9
by: | last post by:
Hi All, I have allready tried to ask a similar question , but got no answer until now. In the meantime, I found, that I cannot understand some thread-settings for the Main() function . If I use...
12
by: Chad Crowder | last post by:
Hi all, I hope someone can give me a hand, because I'm out of ideas. I keep getting this message: Access to the path "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET...
16
by: Brad | last post by:
After compiling my asp.net project I'm receiving a "BC31011 - Access is denied" error when attempting to run or debug. The only thing that seems to resolve problem is IISReset. After a reset my...
1
by: Microsoft News | last post by:
I have a web server sitting on computer 1, (QA1). Out on the network on my main server I have a folder with a zip file in it. All I want is for the web services that are on the web server to pick...
3
by: Shailesh Humbad | last post by:
I figured out what was causing the "Access is Denied" error when calling functions from referenced DLLs in my service. I've tried to be very detailed, so bear with me. It turns out that...
3
by: David Thielen | last post by:
Hi; I created a virtual directory in IIS 6.0 and my asp.net app runs fine. But when it tries to write a file I get: Access to the path is denied. - C:\Inetpub\wwwroot\RunReportASP\images ...
4
by: carson | last post by:
I have written two windows services: - service A does some crunching of local data files and uploads them to a central processing computer via http. - service B monitors a manifest file on a...
6
by: royan | last post by:
Help please! I have the same problem which this post ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.