上框架表单,点提交后表单提交给下框架,上框架内容不变,下框架为提交页 把上框架中form的target设为下框架的name即可<form target="下框架名" action="页面地址" method="post"> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 呵呵!leohuang(LEO) ( ) 高!学习 关键是 target="下框架名" <form target="下框架名" action="表单处理地址" method="post"> 上下框架用iFrame,提交时form.target="下框架iframe名" test.html-------------------------------------------------------------------------------------<input type=button value=调用本页函数删除 onclick=delrecord(myframe.myform)><input type=button value=调用框架函数删除 onclick=myframe.delrecord(myframe.myform)><br/>选其一即可<br/><iframe name=myframe src="test.asp"></iframe><script>function delrecord(obj){obj.submit();}</script>test.asp----------------------------------------------------------------------------<form id=myform action="" target=_self method=post> <%page=request("page")response.write request("sub")if request("mycheck")<>"" thenstrCheckedValues=request("mycheck")response.write strCheckedValues 'PassIt '调用删除 page=cstr(cint(page)+1) '这里转化主要是为了符合你的函数调用end if url="Default.asp" 'Call DB_Connection(DSNstring) sql="select ID,name,adrress,PhoneNum,birthday from tbl_Member WHERE IsPass='0'" 'Call cutPage(sql,Connector,"12",page,url)'20代表每页显示20条记录 %><!--你的数据//--><input type=checkbox name=mycheck value=1>内容<br/><input type=checkbox name=mycheck value=2>内容<br/><input type=checkbox name=mycheck value=3>内容<br/><input type=checkbox name=mycheck value=4>内容<br/><input type=checkbox name=mycheck value=5>内容<br/></form><script>function delrecord(obj){obj.submit();}</script>这里是控制另一个框架的input的方法进行表单提交,你可以照样来控制input的value。 java tree 怎 取最后一个子节点 关于click() 如何检测客户端是否安装了flash插件 js文件解密 求一段访问页面有时间限制的Javascript 又有问题请教了,书上的代码貌似不对。 页面的倒记时 同一页面两个按钮,点击一个按钮后,另外一个按钮也自动点击。 升5个等边三角行,散200, showModalDialog的问题 急,立结,小问题,怎样将对象传过去? 如何动态删除li标签
高!学习
-------------------------------------------------------------------------------------<input type=button value=调用本页函数删除 onclick=delrecord(myframe.myform)>
<input type=button value=调用框架函数删除 onclick=myframe.delrecord(myframe.myform)>
<br/>选其一即可
<br/>
<iframe name=myframe src="test.asp"></iframe>
<script>
function delrecord(obj){
obj.submit();
}
</script>
test.asp
----------------------------------------------------------------------------
<form id=myform action="" target=_self method=post>
<%
page=request("page")
response.write request("sub")
if request("mycheck")<>"" then
strCheckedValues=request("mycheck")
response.write strCheckedValues
'PassIt '调用删除
page=cstr(cint(page)+1) '这里转化主要是为了符合你的函数调用
end if
url="Default.asp"
'Call DB_Connection(DSNstring)
sql="select ID,name,adrress,PhoneNum,birthday from tbl_Member WHERE IsPass='0'"
'Call cutPage(sql,Connector,"12",page,url)'20代表每页显示20条记录
%>
<!--你的数据//-->
<input type=checkbox name=mycheck value=1>内容<br/>
<input type=checkbox name=mycheck value=2>内容<br/>
<input type=checkbox name=mycheck value=3>内容<br/>
<input type=checkbox name=mycheck value=4>内容<br/>
<input type=checkbox name=mycheck value=5>内容<br/>
</form>
<script>
function delrecord(obj){
obj.submit();
}
</script>
这里是控制另一个框架的input的方法进行表单提交,你可以照样来控制input的value。