Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

parent window refresh

 
Nijeesh Balan
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Requirement: I have a html page(say Browser1) which opens a small window on click of a button.
I enter few info., in the child window and then click submit. The parent window(Browser1) should get refreshed.
The javascript (onSubmit) i have written in child window for the same looks like this...

This works properly..
Problem:
But if I have another browser window(say Browser 2) open then open the child window from it.. Click on submit of child window.
The "Content_Frame" of Browswer Window 1 is getting refreshed.. which is not acceptable.
The "Content_Frame" of Browser Window 2 should get refreshed since that is the parent of the child window.
Please let me know if you have some inputs.
Thanks in Advance,
Nijeesh.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try putting opener.refresh(); in the child window window.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic