473,406 Members | 2,281 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.

Window.opener giving "Permission Denied" error

We have a main window (call it Parent). Clicking on a link in the main window will open up another IE window (Child) using the loadInFrame() method.
In the Child window, i load another IE window (which loads an applet. Call this SubChild). This is for the first time. Now if i go ahead and click on the link in the Parent window, the Child and the Subchild windows are refreshed. None of the windows are closed.

Now if i refresh the Parent window, then the Child Window is refreshed but gives me an error saying the window.opener is null.

Another problem is i get an "Access Denied" if i try close the Subchild window and try to refresh the child window. Am new to this and dont know how these relationships work.

Note: Both the parent and the child window are in the same domain.

Any help would be appreciated.

Regards,
Hussain
Feb 29 '08 #1
3 7668
gits
5,390 Expert Mod 4TB
hi ...

when you refresh the parent window all references are lost so you trash the opener-reference ... in case you need the interaction then just be sure that you close the child-window before you refresh the parent ...

kind regards
Feb 29 '08 #2
lkan
1
I have the same problem (window.opener giving "permission denied" error) except that in my case business requires me to keep the pop-up (child) window open.

My question is why would reusing this window to load a URL give this exception?
LK
Sep 1 '10 #3
kovik
1,044 Expert 1GB
It makes sense. Technically, that window no longer exists. Allowing the child access to a new, possibly unrelated window is a security hazard.

When the reference is no longer valid, maybe you should just close the child window.
Sep 1 '10 #4

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

Similar topics

3
by: Yitzhak | last post by:
I am having "Permission denied" error while calling LogEvent method of WScript.Shell component. Basically, ASP page calls Windows Script Host Shell component to log events to the OS Application...
3
by: Colin Graham | last post by:
I am working with a piece of javascript that i have inherited from another developer. It is for a date picker function and it runs fine locally but i get an error when i deploy it on the server and...
3
by: McTuble | last post by:
So I'm new to ASP and set it up on my computer and just want a simple text based guestbook where it just adds your entry to the end of the textfile and to display just displays the contents of the...
12
by: Vlad de Mille IV | last post by:
Well, as the subject says.... Briefly, when I try to run *any* wizard, I get a simple dialog, stating "Permission Denied", to which I can only click "OK". I suspect this is a windows (XP)...
1
by: Peter Reid | last post by:
Hi I've created an interop dll with the following commands: tlbimp NegociosObjects.dll /keyfile:key.snk /out:NegociosObjectsInterop.dll gacutil -i NegociosObjectsInterop.dll Then, in a web...
4
by: Russell Warren | last post by:
I've been having a hard time tracking down a very intermittent problem where I get a "permission denied" error when trying to rename a file to something that has just been deleted (on win32). ...
1
by: rajpath | last post by:
Hello I am using Javascript method on click of a button which opens up the new window displaying the table of the values. Now when the user clicks on the any cell of the table (which is the...
3
by: javalsu | last post by:
I would like to create a popup that reloads with a different page depending which link is clicked on the parent page. Here is the code <script type="text/javascript"> var childWindow ...
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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...

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.