• 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
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic