Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Jul 2002
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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 01:35 AM.

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,075
    Thanks
    0
    Thanked 256 Times in 252 Posts
    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
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #3
    New to the CF scene
    Join Date
    Jul 2002
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #4
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,075
    Thanks
    0
    Thanked 256 Times in 252 Posts
    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
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Posts
    1,404
    Thanks
    2
    Thanked 32 Times in 32 Posts
    Wild guess:

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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •