• 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 ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

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.

Thanks

My pop up:

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


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

    <tr>
    <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>
    </select>
    </td>
    </tr>
    </table>

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

    <table>
    <tr >
    <td ><img src="<%=imagesPath %>spacer.gif" height="10"></td>
    </tr>
    <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>
    </td>
    </tr>
    </table>


    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
     
    author
    Posts: 15385
    6
    • 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.



    Eric
     
    reply
      Bookmark Topic Watch Topic
    • New Topic