• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Referesh main window when you close a pop up window

 
george
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64620
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic