問題:<html>
<iframe frameborder=0 width=600 height=50 marginheight=0 marginwidth=0 scrolling=no src="applytest.jsp" id="applytest"></iframe>
<FORM? name="form1" METHOD="POST" ACTION="customer.do?command=addapplystudent"? onsubmit="return check_data()">
<table>
? <tr>
??? <TD align="left">姓名 </TD>
??????? <td><input? type="text" name="cname">
????????? <font color="#FF0000">*</font>
??? </td>
? </tr>
</table>
</html>
///////////////////////////////////////////////////////////
現(xiàn)在在Action里取到的學(xué)生所在地區(qū)的id總是空,我現(xiàn)在請教各位------怎么取到iframe中的某個參數(shù)的值?
處理:
可以通過iframe的id="applytest"來訪問其頁面的標(biāo)簽,如document.all.applytest.all.xxx來訪問其中的名為xxx的標(biāo)簽.通過再在主頁面設(shè)置hidden將其值拷貝一下就行.
posted on 2006-03-20 13:09
xnabx 閱讀(1248)
評論(0) 編輯 收藏