框架结构:<frameset cols="253,*" framespacing="0" border="0" frameborder="0">
<frame name="left" scrolling="no" noresize target="rtop" src="left.asp">
<frameset rows="180,*,*,*,*">
<frame name="rtop" target="rbottom" src="3Msearch.asp" scrolling="auto" id="rtop_id">
<frame name="rbottom" src="3mline.asp" target="bottom" id='rbottom_id'>
<frame name="rbottom1" src="3mcity.asp" target="bottom" id='rbottom1_id'>
<frame name="rbottom2" src="3mtrans.asp" target="bottom" id='rbottom2_id'>
<frame name="rbottom3" src="3mcity.asp" target="bottom" id='rbottom3_id'>
</frameset>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3Mline.asp
<form id="form1" name="form1" method="post" action="3mcity.asp" target="bottom2" onclick="submit_b()" >
<label>
<input type="radio" name="radiobutton" id="radio_id" value="
<%response.write rst("lineNum")%>">
</form>
<script >
function submit_b(){ top.frames['rbottom1'].location.href='3mtrans.asp?shipno='+form1.radio_id.value;
top.frames['rbottom2'].location.href='3mcity.asp?shipno='+form1.radio_id.value;
top.frames['rbottom3'].location.href='3mcity.asp?shipno='+form1.radio_id.value;
return true;
}
</script>
点击radio后提示
form1.radio_id.value;为空或不适对象
请帮忙指点
<frame name="left" scrolling="no" noresize target="rtop" src="left.asp">
<frameset rows="180,*,*,*,*">
<frame name="rtop" target="rbottom" src="3Msearch.asp" scrolling="auto" id="rtop_id">
<frame name="rbottom" src="3mline.asp" target="bottom" id='rbottom_id'>
<frame name="rbottom1" src="3mcity.asp" target="bottom" id='rbottom1_id'>
<frame name="rbottom2" src="3mtrans.asp" target="bottom" id='rbottom2_id'>
<frame name="rbottom3" src="3mcity.asp" target="bottom" id='rbottom3_id'>
</frameset>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3Mline.asp
<form id="form1" name="form1" method="post" action="3mcity.asp" target="bottom2" onclick="submit_b()" >
<label>
<input type="radio" name="radiobutton" id="radio_id" value="
<%response.write rst("lineNum")%>">
</form>
<script >
function submit_b(){ top.frames['rbottom1'].location.href='3mtrans.asp?shipno='+form1.radio_id.value;
top.frames['rbottom2'].location.href='3mcity.asp?shipno='+form1.radio_id.value;
top.frames['rbottom3'].location.href='3mcity.asp?shipno='+form1.radio_id.value;
return true;
}
</script>
点击radio后提示
form1.radio_id.value;为空或不适对象
请帮忙指点
document.all.radio_id.value;
------------------------------
<form id="form1" name="form1" method="post" action="3mcity.asp" target="bottom2" onsubmit="return submit_b()" >
这样子好像还是没有获得radio的变量。
虽然提交显示正确但数值没有传递过去
我将value="具体的数值"依然没有显示相应的记录
<input type="radio" name="radiobutton" id="radio_id" value="
<%response.write rst("lineNum")%>"> 有多行时,有办法判断提交的数据吗?
<label> <input type="radio" name="radiobutton" id="radio_id" value="<%=rst("hawbno")%>" ><%=rst("LineNum")%>
<input type="radio" name="radiobutton" id="radio_id" value="<%=rst("hawbno")%>" ><%=rst("LineNum")%>
</form>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<script >
function submit_b(){
top.frames['rbottom1'].location.href='3mtrans.asp?hawbno='+document.getElementById("radio_id").value;
top.frames['rbottom2'].location.href='3mcity.asp?hawbno='+document.getElementById("radio_id").value;
top.frames['rbottom3'].location.href='3mcity.asp?hawbno='+document.getElementById("radio_id").value;
return true;
}
</script>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
现在的问题是不管我提交第一行还是第二行
只提交第一行的数据
关键时刻 楼上的老兄千万不要去睡觉哦
今晚还有冠军杯呢,我支持ac
<input type="radio" name="radiobutton" id="radio_id" value="
<%=replace(rst("lineNum"),"""",""")%>">url编码
top.frames['rbottom1'].location.href='3mtrans.asp?shipno=' + escape(form1.radio_id.value);
...
无效使用 Null: 'replace'
/3mline.asp, 第 59 行
修改中