aspose file tools*
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
Author

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 window.open 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.focus();
opener.location.href = opener.location;
self.close();

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
Hi,

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.

Thanks,
Sandip
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
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?

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: parent window not refreshing second time