aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes pop up child sending value to parent 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 "pop up child sending value to parent" Watch "pop up child sending value to parent" New topic
Author

pop up child sending value to parent

Pranav Sharma
Ranch Hand

Joined: Oct 27, 2003
Posts: 256
in a pop-up i populate a set of values from the database.
these values look like links. now the user clicks on a link and this value should get populated in the parent window.

Now with help from from Eric Pascarello, I know how to populate the parent if it is of type:
form.[type].value

But how do I do this for a non-form object. Hope I was clear.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
document.getElementById("asdf")....

What is theis other element?

Eric
Pranav Sharma
Ranch Hand

Joined: Oct 27, 2003
Posts: 256
if a user searched for a number and a list of name and numbers come up, and the result look something like below. when the user clicks on the result the value of the number should be populated in the parent window.


Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
<TD><a href="javascript:window.opener.document.formName.elementName.value='1';self.close();">1</a></TD>

somehting like that?
Pranav Sharma
Ranch Hand

Joined: Oct 27, 2003
Posts: 256
it works.
thanks eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: pop up child sending value to parent
 
Similar Threads
Losing session data on closing a pop up window and refreshing the parent
problem getting result jsp to parent window
Getting parameters from a pop-up window
how to implement this in DHTML
Add and Edit a row