wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes returning value from popup 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 "returning value from popup" Watch "returning value from popup" New topic

returning value from popup

Nidhi Singhal
Ranch Hand

Joined: Sep 19, 2004
Posts: 89

Hi all,

I want to return a value from the popup window back to a text box in my servlet. I am using window.opener.forms[0].txtbox.value = somevalue
But it is giving the error object not found. I have a form in my popup window as well in my servlet. Please help me out...

Eric Pascarello

Joined: Nov 08, 2001
Posts: 15376
try doing this:

window.opener.document.forms[0].txtbox.value = somevalue

I agree. Here's the link: http://aspose.com/file-tools
subject: returning value from popup
Similar Threads
Pop up problem in IE8
popup window
getting stored values from form
how to get value from popup window
Close main window from popup window