File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes parent form reload? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "parent form reload?" Watch "parent form reload?" New topic

parent form reload?

Manoj Zachariah
Ranch Hand

Joined: Dec 08, 2003
Posts: 65
I have a page that has an Add button. On clicking that, a child window opens with form. When the child window form is submitted by the user the (child)window should close and the parent form should be reloaded with what ever i inputted in the child window.
How would you set this up?
Prakash Dwivedi
Ranch Hand

Joined: Sep 28, 2002
Posts: 452
It looks more like javascript problem, as you would like to handle it on the browser end only(for performance reason).
Are you interested in JSP level solution? (although javascript will still be there)

Prakash Dwivedi (SCJP2, SCWCD, SCBCD)
"Failure is not when you fall down, Its only when you don't get up again"
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63852

Moving to the HTML/Javascript forum.

[Asking smart questions] [About Bear] [Books by Bear]
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
on the onload of the pop up you can use this:
window.opener.document.FormName.ElementName.value = document.FormNamePop.ElementNamePop.value;
I agree. Here's the link:
subject: parent form reload?
It's not a secret anymore!