Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Problem in passing values to the parent window

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I have parent window with a link "add products" which will open a child pop-up window.In child window, I get information from database and display them in a table. The user selects one or many products using check boxes and presses the "select" button in the child window.

Once the products are selected from child window, I have to display those selected products in main or the parent window.

How can I do that using Javascript? Could you please give some suggestions.
A example would be much better.Thanks in advance.
 
Ranch Hand
Posts: 256
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this has been discussed many times.
i think i replied to this a few days back itself.

https://coderanch.com/t/112806/HTML-JavaScript/data-Child-window-parent-window

https://coderanch.com/t/115993/HTML-JavaScript/returning-value-popup

or just search for posts with the words window.opener.
you will find many solutions.
 
I'm THIS CLOSE to ruling the world! Right after reading this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic