This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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
Author

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: http://aspose.com/file-tools
 
subject: Can I pass a form to a pop up
 
Similar Threads
Popup window jsp page
How to open pop-up
Problem with pop-up window
Submit problem when another pop-up window opens
Close Popup and refresh parent