my dog learned polymorphism*
The moose likes HTML, CSS and JavaScript and the fly likes parent window not refreshing second time Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "parent window not refreshing second time" Watch "parent window not refreshing second time" New topic

parent window not refreshing second time

vikas sharmaa
Ranch Hand

Joined: Jun 28, 2007
Posts: 191
on click of modify button, the child window is opening by calling function. after that i modified the text areas in the child window screen and save them. on close in the child window i've written the below code, which is refreshing the parent window.

opener.location.href = opener.location;

then again i click on modify button and close the child window. again its refresh the parent page. i tried many times and it working fine. but, the same code is deployed on the on-site environment. but their page is getting refreshed only the first time. why its not refreshing second time?
Sandip Sarkar
Ranch Hand

Joined: Nov 25, 2007
Posts: 55

Can you be a bit more specific about on-site environment they are using. Information like as to which browser and version they are using will be helpful.
Also it will be great if you can post your code.

Eric Pascarello

Joined: Nov 08, 2001
Posts: 15376
Do you have no cache headers on the page?

Have you tried document.location.reload(true);

Have you tried appending a timestamo to the URL querystring?

I agree. Here's the link:
subject: parent window not refreshing second time
Similar Threads
How to Close multiple child windows from a parent window
Passing values from child to parent window
close browser window!
Refershing the parent page from the second child
error in passing values from child window to parent window