This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

pop up child sending value to parent

 
Pranav Sharma
Ranch Hand
Posts: 258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
document.getElementById("asdf")....

What is theis other element?

Eric
 
Pranav Sharma
Ranch Hand
Posts: 258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<TD><a href="javascript:window.opener.document.formName.elementName.value='1';self.close();">1</a></TD>

somehting like that?
 
Pranav Sharma
Ranch Hand
Posts: 258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it works.
thanks eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic