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
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
 
jQuery in Action, 2nd edition
 
subject: returning value from popup