SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2001
    Location
    UK, London
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    self.opener.location.reload;

    Hi

    I am currently working on a window (B), that is opened by another window(A).

    what i am trying to achieve is this :-

    when the user clicks on the 'OK' button of window (B), i want window(A) to be refreshed WITHOUT the standard alert message which says

    ..."The page cannot be refreshed without resending the information. Click retry to send the information again, or click Cancel to return to the page you were trying to review".......

    popping up. I have tried to get around it by using

    self.opener.location.reload(force);

    and

    self.opener.location.reload(true);

    neither of them work!!

    any ideas would be gratefully received? (im using version 5 of IE)
    If you can talk, you can sing, if you can walk, you can dance!!

  2. #2
    Web-coding NINJA! silver trophy beetle's Avatar
    Join Date
    Jul 2002
    Location
    Dallas, TX
    Posts
    2,900
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    if the page was submitted with post or get data, then you will always get this with a refresh. In fact, using true forces it to refresh from the server (false, the default, will load the page from the browser cache) so

    self.opener.location.reload();

    May work. If not, you will need to reset the href or use the replace() method.

    self.opener.location.href = "page.htm";
    self.opener.location.replace("page.htm");
    beetle a.k.a. Peter Bailey
    blogs: php | prophp | security | design | zen | software
    refs: dhtml | gecko | prototype | phpdocs | unicode | charsets
    tools: ide | ftp | regex | ffdev




  3. #3
    SitePoint Enthusiast
    Join Date
    Mar 2001
    Location
    UK, London
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hmmm......i had tried using .replace earlier, doesnt work properly, (neither does href= "url" as the user needs to click the 'OK' button twice in order to see the updated value in window (A). (something about the cached value??!!).....any more ideas?
    If you can talk, you can sing, if you can walk, you can dance!!


Bookmarks

Posting Permissions

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