随笔-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 阅读(1237) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航: