Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

parent window not refreshing second time

 
vikas sharmaa
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic