File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 15385
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
jQuery in Action, 3rd edition