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 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: 15385
try doing this:

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

I agree. Here's the link:
subject: returning value from popup
It's not a secret anymore!