www.webdeveloper.com
Results 1 to 4 of 4

Thread: Why Parent Window not updating immediately?

  1. #1
    Join Date
    Feb 2006
    Location
    India
    Posts
    15

    Why Parent Window not updating immediately?

    Hi

    I ve a popup window which opens with some data in it.When we make changes in it and click the save button, the popup window after saving the data starts refreshing the parent page and itself gets closed (The sequence of oprations is same in the code too).
    Now the problem.....

    What's happening is sometimes I get correct/upadted data in the parent page and sometimes not but the data is saved definately because again if I open the Popup, it contains the updated data.

    The logic to reload the parent page is in javascript and I m using window.opener.location.href() to reload the page after saving the data. I ve ckecked with opener.window.location.href() as well but the result is the same.

    What i can understand is that though the data is getting saved but the data in the parent window cannot be updated so quiclky.

    Can anybody plz suggest what to do?

    Plz help

    Arpan

  2. #2
    Join Date
    Dec 2003
    Location
    Bucharest, ROMANIA
    Posts
    15,428
    If you want the page to be refreshed from server, not from cache, you should use another method

    opener.location.reload(true)
    from cache
    opener.location.reload(false)

  3. #3
    Join Date
    Feb 2006
    Location
    India
    Posts
    15
    But that asks for Retry/Cancel option. Is there a way I can bypass retry option.

  4. #4
    Join Date
    Dec 2003
    Location
    Bucharest, ROMANIA
    Posts
    15,428

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles