aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Referesh  main window when you close a pop up window Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Referesh  main window when you close a pop up window" Watch "Referesh  main window when you close a pop up window" New topic
Author

Referesh main window when you close a pop up window

george
Greenhorn

Joined: Oct 07, 2002
Posts: 9
Hi All,
One of my application module has two browser windows one is Main window with all naviagtions and another one, a pop up window only for entering some additional informations to main window. After I enter my information in the Pop up Window and Clicks on Submit button,I want to refresh my Main Window automatically with entered information.
Really appreciate your valuable comments.
Thanks


Geo
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61418
    
  67

Geo, you'll need to change your name to conform to Ranch policies.
Your popup window has access to the main window via the attribute opener.
Two approaches using this mechanism come to mind:
1) Define a form in the main page, invisible if appropriate, and just before the popup closes itself it can submit the form using something along the lines of:

2) If you need more flexibility, define a javascript function that can do anything you want, and call it berfore closing the popup with:

hth,
bear


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Geo you are going to have to change your name to fit the forums only rule to keep posting here. You can change your display name by following this link.... http://www.coderanch.com/forums/user/edit
Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Referesh main window when you close a pop up window