Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Passing values from child popup window to parent window

 
Aravind Prasad
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Ranchers,

I am developing a system where the parent window which opens the pop up is in the iframe tag. Once the link is activated, it will open the pop-up window and with a iframe in it. There is a list which I am populating from the database to the iframe. Each row has a include link where, the user clicks it, it has to load the corresponding values to the parent text field.

I am using java script to do this and it is giving me an error message


The code I am using is as below.



Please help me, to solve this issue.

Regards

Aravind Prasad
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if it is in the iframe in the child, you need to use parent.

parent.window.opener...

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic