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 Can I pass a form to a pop up Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Badass: Making Users Awesome this week in the Game Development forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Can I pass a form to a pop up" Watch "Can I pass a form to a pop up" New topic

Can I pass a form to a pop up

Jay Abrahm
Ranch Hand

Joined: May 28, 2008
Posts: 183

I have a pop up confirmation jsp page where the user is asked to enter his name and confirm/cancel but once I hit the pop up I no longer can do a document.forms[0].submit() since the initial form is not available.

So what is the best practice ? Send the form to the pop up jsp (can this be done) or save the form in the session ?

Haina Minawa
Ranch Hand

Joined: Oct 13, 2011
Posts: 119
Call the form on the page that opens the popup (the "opener"):

I agree. Here's the link:
subject: Can I pass a form to a pop up