1

我的弹出窗口中有一个表格标签,可以在其中动态插入行。我需要知道如何检索与父窗口中的表相对应的值。你们能指导我实现这一目标吗?我可以检索输入框值,但不能检索表中的行。

谢谢

我的弹出窗口:

<form name="BREAKUP" method="POST" action="JavaScript:submitForm()">
    <br>
    <center>
    <TABLE id="PDetailsTable" width="350px" 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>&nbsp;Add Details &nbsp;</span></button>

    <TABLE>
        <TR align="center" valign="top">
            <TD colspan="2"><img src="<%=imagesPath %>spacer.gif" height="10"></TD>
        </TR>
        <TR valign="bottom">
            <TD colspan="2" align="center">
                <button TYPE="submit" class="submitBtn" onclick="JavaScript:submitForm();">
                <span>&nbsp;Submit &nbsp;</span></button>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <button value="Reset" class="submitBtn" onclick="JavaScript:resetForm();">
                <span>&nbsp;Reset&nbsp;</span></button>
            </TD>
        </TR>
    </TABLE>

有三个javascript函数。我在 submiForm 函数中使用 windows.opener。我不知道如何发送值列表并在父窗口中检索

4

0 回答 0