This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes parent window refresh Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "parent window refresh" Watch "parent window refresh" New topic
Author

parent window refresh

Nijeesh Balan
Ranch Hand

Joined: Oct 09, 2000
Posts: 116
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.


Thanks & Regards,<br />Nijeesh.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
try putting opener.refresh(); in the child window window.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: parent window refresh
 
Similar Threads
input from a new window
error in passing values from child window to parent window
Child window reload problem
Parent window refresh problem
submit form of child window and show the new screen in parent window.