Web Analytics Made Easy -
StatCounter reloading window.opener get permission denied error - CodingForum

Announcement

Collapse
No announcement yet.

reloading window.opener get permission denied error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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


    it works in Netscape

    any help would be greatly appreciated
    Last edited by rocket; Jul 10, 2002, 07:35 PM.

  • #2
    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
    vBulletin Mods That Rock!

    Comment


    • #3
      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

      Comment


      • #4
        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
        vBulletin Mods That Rock!

        Comment


        • #5
          Wild guess:

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

          Comment

          Working...
          X