框架结构:<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;为空或不适对象
请帮忙指点

解决方案 »

  1.   

    form1.radiobutton.value
    document.all.radio_id.value;
      

  2.   

    <form id="form1" name="form1" method="post" action="3mcity.asp" target="bottom2" onclick="submit_b()" >
    ------------------------------
    <form id="form1" name="form1" method="post" action="3mcity.asp" target="bottom2" onsubmit="return submit_b()" >
      

  3.   

    hookee:
       这样子好像还是没有获得radio的变量。
    虽然提交显示正确但数值没有传递过去
    我将value="具体的数值"依然没有显示相应的记录
      

  4.   

    是3mcity.asp?shipno=xxx 中 request("shino")没有值吗?
      

  5.   

    哦,不是我说的,是因为我在3mline中用的循环语句给radio附的值,但radio的名称没有变化,所以我觉得问题出在这里。
      <input   type="radio"   name="radiobutton" id="radio_id"  value="
    <%response.write rst("lineNum")%>"> 有多行时,有办法判断提交的数据吗?
      

  6.   

    对行没问题,只要不包含url特殊字符,最好用escape()编码下
      

  7.   

    <form id="form1" name="form1" method="post" action="3mcity.asp" target="bottom1"  onclick ="submit_b()" >
      <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
      

  8.   

    将双引号编码
    <input type="radio" name="radiobutton" id="radio_id" value="
    <%=replace(rst("lineNum"),"""","&quot;")%>">url编码
    top.frames['rbottom1'].location.href='3mtrans.asp?shipno=' + escape(form1.radio_id.value);
    ...
      

  9.   

    Microsoft VBScript 运行时错误 (0x800A005E)
    无效使用 Null: 'replace'
    /3mline.asp, 第 59 行
    修改中
      

  10.   

    这说明rst("lineNum")返回的是null,是数据库里该字段没有数据,或该字段不存在,查一下了。