如何将弹出窗口中复选框(多选)选中的数据内容,传递到母文件的INPUT框中***急用+学习

Coverboy_6 2006-05-09 08:10:23
有哪个高手就以下问题能给个详细的说明例子吗?以供小弟学习.谢谢了,在线等,急啊.
我有一表单文件如下:
文件名*******[send.asp]
<script language="javascript">
function openscriphtml()
{
if (navigator.appName!="Microsoft Internet Explorer")
alert("此功能 Netscape 用户不能使用!")
else
{newwin=window.open('list.asp','','width=544,height=294');
newwin.focus();
}
}
</script>

<form action="send.asp?sen=ok" method=post name="frmAnnounce">
<table border="0" width="600" cellspacing="1" bgcolor="#555555" cellpadding="2">
<tr>
<td width="77" bgcolor="#FFFFFF" valign="top">
参赛队员名单:<br/>
<br/><a href="javascript:openscriphtml()">所有队员列表</a></td>
<td width="512" bgcolor="#FFFFFF">
<input name="body" id="body"></input></td>
</tr>
<tr>
<td width="594" bgcolor="#E9E9E9" colspan="2">
<input type=Submit value="发 送" name="Submit"><input type="reset" name="Clear" value="清 除"></td>
</tr>
</table>
</form>


*******['list.asp']文件如下:我如何点了“确定”按钮后,将form中所有复选框打钩的列表值传递到send.asp页面中?

<form name=name_list action="">
<%do while not rs1.eof%>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr align="center">
<td width="26" height="25">
<input name="vote" type="checkbox" id="<%=rs1("id")%>" value="<%=rs1("name")%>"></td> //…………(复选框)
<td width="138">编号:<%=rs1("id")%></td>
<td width="300">名字:<%=rs1("name")%></td>
</tr>
</table>
<%rs1.movenext() loop%>
<input name="submit" type="submit">确定</input>
</form>

我如何点了“确定”按钮后,将form中所有复选框打钩的列表值传递到send.asp页面中?

请会的朋友帮我修改一下,以便我能达到我的效果,同时本人也能学习一下。谢谢了!
...全文
421 8 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
icefire988 2006-05-18
  • 打赏
  • 举报
回复
http://community.csdn.net/Expert/topic/4740/4740995.xml?temp=.3027765
happyczp 2006-05-18
  • 打赏
  • 举报
回复
对啊,这个功能很好啊!!!请提供代码啊!
wanghui0380 2006-05-10
  • 打赏
  • 举报
回复
parent.window.document.getElementById("body").value=....
Coverboy_6 2006-05-10
  • 打赏
  • 举报
回复
没有人能够帮我解决吗?急啊
Coverboy_6 2006-05-10
  • 打赏
  • 举报
回复
parent.window.document.getElementById("body").value=....

这段能写详细点吗?我不会用啊
ltayo 2006-05-09
  • 打赏
  • 举报
回复
列个例子看看对你有没有帮助
母文件包含代码:
<script language="vbscript">
Sub BtnSetBgColor_Onclick
dim ReturnColor
ReturnColor=mmshowModalDialog("dialogcolor.htm",BgColor.value,468,250)
if ReturnColor<>"" then
BgColor.value=ReturnColor
BtnSetBgColor.style.backgroundcolor=BgColor.value
end if
End Sub
</script>
背景色<input type="text" name="BgColor" size="7" class="dialogInput"><input type="button" name="BtnSetBgColor" class="BtnSelectColor">

弹出对话框(dialogcolor.htm)包含代码:
<script language="vbscript">
sub BtnOk_onclick()
window.returnValue=SelColor.value
window.close()
end sub
</script>
山野村夫 2006-05-09
  • 打赏
  • 举报
回复
可以的,手边没有代码,可以看看ewebeditor的上传图片等功能的代码
  • 打赏
  • 举报
回复
parent.window.document.getElementById("body").value=....

28,409

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧