• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

How to retrieve values from pop up in a parent window

Ranch Hand
Posts: 31
Opera C++ Notepad
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a table tag in my Pop up window, in which the row can be dynamically inserted. I need to know how to retrieve the values correspond to the table in Parent window. Can you guys guide me to achieve this. I can retrieve the input box values, but not the rows in table.


My pop up:

  • <form name="BREAKUP" method="POST" action="JavaScript:submitForm()">

    <table id="PDetailsTable" border="1">
    <td>Team Name</td>
    <td>Estimated Hours</td>
    <td>Actual Hours</td>

    <td > 1 </td>
    <td ><INPUT id="TEAM_NME" ></td>
    <td ><INPUT id="EST_HRS"></td>
    <td ><INPUT id="ACT_HRS"></td>
    <td >
    <select id="MNTH" onchange="" size="1">
    <option value="Jan">January</option>
    <option value="Feb">February</option>
    <option value="Mar">March</option>
    <option value="Apr">April</option>
    <option value="May">May</option>
    <option value="Jun">June</option>
    <option value="Jul">July</option>
    <option value="Aug">August</option>
    <option value="Sep">September</option>
    <option value="Oct">October</option>
    <option value="Nov">November</option>
    <option value="Dec">December</option>

    <button value="Add Details" class="submitBtn" onclick="JavaScript:addRow('PDetailsTable');">
    <span> Add Details  </span></button>

    <tr >
    <td ><img src="<%=imagesPath %>spacer.gif" height="10"></td>
    <tr >
    <td >
    <button TYPE="submit" class="submitBtn" onclick="JavaScript:submitForm();">
    <span> Submit  </span></button>
    <button value="Reset" class="submitBtn" onclick="JavaScript:resetForm();">
    <span> Reset </span></button>

    There are three javascript functions. I am using windows.opener in submiForm Function. I don't know how to send a list of values and retrieve in the parent windows
    Posts: 15385
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Edit your post and use code tags.

    On the parent have a function, call it from the pop up window and pass the data to it.

    Hey! Wanna see my flashlight? It looks like this tiny ad:
    Thread Boost feature
      Bookmark Topic Watch Topic
    • New Topic