aspose file tools*
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "returning value from popup" Watch "returning value from popup" New topic
Author

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...

Thanks..
Nidhi
Eric Pascarello
author
Rancher

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

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

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