隨筆-61  評論-13  文章-19  trackbacks-0

          問題:<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>

          ///////////////////////////////////////////////////////////

          現在在Action里取到的學生所在地區的id總是空,我現在請教各位------怎么取到iframe中的某個參數的值?

          處理:
          可以通過iframe的id="applytest"來訪問其頁面的標簽,如document.all.applytest.all.xxx來訪問其中的名為xxx的標簽.通過再在主頁面設置hidden將其值拷貝一下就行.

          posted on 2006-03-20 13:09 xnabx 閱讀(1251) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 龙陵县| 台湾省| 玉山县| 庄浪县| 深泽县| 高要市| 吴桥县| 开平市| 威宁| 南阳市| 永平县| 石柱| 宁河县| 丰镇市| 繁昌县| 横峰县| 龙泉市| 阳山县| 即墨市| 明光市| 寿阳县| 石河子市| 台南县| 特克斯县| 巴南区| 安达市| 淳化县| 赣州市| 若羌县| 高青县| 阿瓦提县| 越西县| 平顺县| 会同县| 祁连县| 任丘市| 海城市| 五河县| 南平市| 万载县| 安义县|