wood burning stoves*
The moose likes HTML, CSS and JavaScript and the fly likes Page 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 "Page refresh" Watch "Page refresh" New topic
Author

Page refresh

Janaki Indukuri
Greenhorn

Joined: Jul 24, 2006
Posts: 4
I have the following requirement:
1) When I click on a link it opens a popup window.
2) Data is entered in the popup window.After submitting the data the popup window closes.
3) I want to refresh the first page by loading the second page's data without using F5.

Regards,
Janaki
karthikeyan Chockalingam
Ranch Hand

Joined: Sep 06, 2003
Posts: 259
Use window.opener

http://www.htmlcodetutorial.com/linking/linking_famsupp_75.html


http://www.skillassert.com


Chetan Parekh
Ranch Hand

Joined: Sep 16, 2004
Posts: 3636
Use window.opener.YourFormName.submit()


My blood is tested +ve for Java.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Moved to HTML/Javascript


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
karthikeyan Chockalingam
Ranch Hand

Joined: Sep 06, 2003
Posts: 259
I guess it should be window.opener.document.YourFormName.submit() instead of window.opener.YourFormName.submit().
[ September 29, 2006: Message edited by: karthi keyan ]
Chetan Parekh
Ranch Hand

Joined: Sep 16, 2004
Posts: 3636
Yes
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Page refresh
 
Similar Threads
window refresh and popup
How to refresh the main window once we close the popup
reload openr window after calling servlet
popup window
post data on popup then refresh parent window