隨筆-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 閱讀(1249) 評論(0)  編輯  收藏

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


          網站導航:
           
          主站蜘蛛池模板: 云梦县| 陆丰市| 钟祥市| 澄城县| 冷水江市| 鄂尔多斯市| 木兰县| 罗山县| 翁源县| 贞丰县| 汉川市| 金山区| 阿合奇县| 白银市| 资阳市| 岳西县| 台北市| 曲水县| 阜南县| 临西县| 梁山县| 安新县| 河源市| 栾城县| 修武县| 温宿县| 五莲县| 阳山县| 左贡县| 吐鲁番市| 司法| 常州市| 双柏县| 文山县| 科尔| 六枝特区| 渭源县| 水城县| 富顺县| 南城县| 泰州市|