隨筆-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)  編輯  收藏

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


          網站導航:
           
          主站蜘蛛池模板: 黔西县| 白沙| 岑巩县| 通化市| 农安县| 中卫市| 盘锦市| 太和县| 潮州市| 彭水| 定州市| 安丘市| 平原县| 广饶县| 郸城县| 晋江市| 河津市| 靖边县| 兴安县| 汝州市| 五原县| 平塘县| 高唐县| 新田县| 商水县| 宜兰县| 沅江市| 新营市| 利川市| 永宁县| 兴城市| 新宁县| 德令哈市| 新巴尔虎左旗| 青冈县| 温州市| 图们市| 新龙县| 汶川县| 陈巴尔虎旗| 南京市|