File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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