File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to retrieve values from pop up in a parent window

 
ahamed irshad
Ranch Hand
Posts: 31
C++ Notepad Opera
  • 0
  • Mark post as helpful
  • send pies
  • 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
     
    Eric Pascarello
    author
    Rancher
    Posts: 15385
    6
    • 0
    • Mark post as helpful
    • send pies
    • 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
     
    It is sorta covered in the JavaRanch Style Guide.
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic