473,503 Members | 1,813 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

window.opener -- Access Denied

From the main window, I'm opening a popup window.

In that poupup window, the user loads a number of different pages (by
submitting forms and clicking on buttons), some of which are in a
different domain. But eventually, the user comes back to a page that is
in the same domain as the page in the main window.

On this page, I'm trying to execute the following script:

<script language="JavaScript" type="text/javascript">
window.opener.document.forms[0].action="otherpage.asp";
window.opener.document.forms[0].submit();
window.opener.close();
</script>

Yes, there is a form on the page that has been sitting in the main
window this whole time.

However, I'm getting an "access denied" error. Any thoughts?

Thanks,
David

Jul 20 '05 #1
1 19077
Several things may be going on:

- First and foremost, are both pages being hosted by the same domain?
- Unless the window.opener window was actually opened using a window.open()
command, then the following will not work: window.opener.close();
- Finally, check the scripting security preferences of your browser.

L8R

"David Cohen" <da***@paralegaltech.com> wrote in message
news:3F**************@paralegaltech.com...
| From the main window, I'm opening a popup window.
|
| In that poupup window, the user loads a number of different pages (by
| submitting forms and clicking on buttons), some of which are in a
| different domain. But eventually, the user comes back to a page that is
| in the same domain as the page in the main window.
|
| On this page, I'm trying to execute the following script:
|
| <script language="JavaScript" type="text/javascript">
| window.opener.document.forms[0].action="otherpage.asp";
| window.opener.document.forms[0].submit();
| window.opener.close();
| </script>
|
| Yes, there is a form on the page that has been sitting in the main
| window this whole time.
|
| However, I'm getting an "access denied" error. Any thoughts?
|
| Thanks,
| David
|
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
18390
by: Stefan Sch?rmeli | last post by:
I already read about several problems using firefox and the window.opener property. But obviously it didn't help out. So here is my problem: I got a "Search..." link which opens a new window...
7
3278
by: George Hester | last post by:
Please take a look at this google artcle: http://groups.google.com/groups?hl=en&lr=&frame=right&th=55d6f4b50f5f9382&seekm=411f370d%241%40olaf.komtel.net#link9 The op was having trouble with...
2
2487
by: ENIZIN | last post by:
I am having an interesting problem where I am simply trying to put in country selection popup window on my site. When the user closes the window the popup should call the...
3
5704
by: PromoteDirect | last post by:
Newsgroups: comp.lang.javascript Subject: access denied when trying to pass data between jsps Date: Thu, 09 Mar 2006 10:42:01 -0800 I have two jsp applications. One written with struts and one...
4
3986
by: Chrisser | last post by:
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 =...
3
7676
by: hussain123 | last post by:
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...
3
4061
by: Asterix | last post by:
Hi Guys, I know this is probably an easy one, but I am having issues. Basically, I have a pop-up (child) that controls the parent window. Clicking on a link on the child window should redirect...
0
7202
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7086
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
7460
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...
1
5014
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...
0
3167
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1512
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
380
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.