Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-11-2002, 12:33 AM   PM User | #1
rocket
New to the CF scene

 
Join Date: Jul 2002
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
rocket is an unknown quantity at this point
Internet Explorer reloading window.opener get permission denied error

I searched around the site and have tried some suggestions, but have no success.

after some processing I am doing the folowing from the child window
<script>
window.opener.location.reload();
window.close();
</script>

This works for one of my pages, but for another page it displays the js error dialog with
Error: permission denied.
same error on IE 5.5 and 6.0

the url I am trying to reload is
http://www.some.com/index.html?dd=fi..._it&type=blank

it works in Netscape

any help would be greatly appreciated

Last edited by rocket; 07-11-2002 at 12:35 AM..
rocket is offline   Reply With Quote
Old 07-11-2002, 02:09 AM   PM User | #2
glenngv
Supreme Master coder!


 
glenngv's Avatar
 
Join Date: Jun 2002
Location: Los Angeles, CA Original Location: Philippines
Posts: 10,241
Thanks: 0
Thanked 112 Times in 111 Posts
glenngv will become famous soon enough
are the 2 pages on the same domain? if it's not, then it might be one of the restrictions on cross-domain security.
__________________
Glenn
_____________________________________________
Play Tower of Hanoi Android app (Ad-FREE!)
Play Tower of Hanoi Android app (FREE!)
Go to Tower of Hanoi Leaderboard
Play Tower of Hanoi Facebook app
glenngv is offline   Reply With Quote
Old 07-11-2002, 02:32 AM   PM User | #3
rocket
New to the CF scene

 
Join Date: Jul 2002
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
rocket is an unknown quantity at this point
yes they are both in the same domain.

i open the child window with

newWin=window.open("url","windowname","h=300,w=300")

nothing really special
rocket is offline   Reply With Quote
Old 07-11-2002, 02:41 AM   PM User | #4
glenngv
Supreme Master coder!


 
glenngv's Avatar
 
Join Date: Jun 2002
Location: Los Angeles, CA Original Location: Philippines
Posts: 10,241
Thanks: 0
Thanked 112 Times in 111 Posts
glenngv will become famous soon enough
you provided a wrong link. It should be index.htm not index.html.
anyway, I can't see a link that opens in a new window, even the the code that opens a new window or even an external js.

and when do you call this

window.opener.location.reload();
window.close();

from the child window?
__________________
Glenn
_____________________________________________
Play Tower of Hanoi Android app (Ad-FREE!)
Play Tower of Hanoi Android app (FREE!)
Go to Tower of Hanoi Leaderboard
Play Tower of Hanoi Facebook app
glenngv is offline   Reply With Quote
Old 07-11-2002, 02:44 AM   PM User | #5
adios
Senior Coder

 
Join Date: Jun 2002
Posts: 1,404
Thanks: 2
Thanked 32 Times in 32 Posts
adios is on a distinguished road
Wild guess:

<script type="text/javascript">
if (opener && !opener.closed) opener.location.reload();
setTimeout('self.close()',100);
</script>
adios is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:17 PM.


Advertisement
Log in to turn off these ads.