首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

怎么将这二个值同时传送到加一页面

2012-03-12 
如何将这二个值同时传送到加一页面这是一个如何将子窗口参数传到父窗口的问题.搞了子窗口中二个复选框代码

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

子窗口中二个复选框代码:
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 ' / >"

热点排行