日期:2014-05-16  浏览次数:20349 次

如何将这二个值同时传送到加一页面
这是一个如何将子窗口参数传到父窗口的问题.搞了

子窗口中二个复选框代码:
response.write "<input type='radio' name='a2' value='"&rsLawyer("LawyerReality")&"' onClick='window.opener.formwrite.AidLYLawyerName.value=this.value;' />" 

response.write "<input type='radio' name='a1' value='"&rsLawyer("LawyerId")&"' onfocus='window.opener.formwrite.AidLYLawyerID.value=this.value;'checked='checked' />" 

想通过一次点击同时将这二个复选框中数值传送到父窗口中(分别点击已没有问题),要求不关闭、不刷新窗口。

敬请各位高手帮忙!

------解决方案--------------------
response.write " <input type= 'radio ' id='r2' name= 'a2 ' value= '"&rsLawyer("LawyerReality")&" ' onClick= 'window.opener.formwrite.AidLYLawyerName.value=this.value + document.getElementById(\"r1\").value; ' / >"

response.write " <input type= 'radio ' id='r1' name= 'a1 ' value= '"&rsLawyer("LawyerId")&" ' onfocus= 'window.opener.formwrite.AidLYLawyerID.value=this.value + document.getElementById(\"r2\").value; 'checked= 'checked ' / >"

------解决方案--------------------
response.write " <input type= 'radio ' id= 'r2 ' name= 'a2 ' value= '"&rsLawyer("LawyerReality")&" ' onClick= 'window.opener.formwrite.AidLYLawyerName.value=this.value;window.opener.formwrite.AidLYLawyerID.value = document.getElementById(\"r1\").value; ' / >"

response.write " <input type= 'radio ' id= 'r1 ' name= 'a1 ' value= '"&rsLawyer("LawyerId")&" ' onfocus= 'window.opener.formwrite.AidLYLawyerID.value=this.value;'window.opener.formwrite.AidLYLawyerName.value= document.getElementById(\"r2\").value; 'checked= 'checked ' / >"