如何让弹出页的js提交后回传给父页不刷新获取新的图片值
页一:<formname="editForm"method="post"><ahref="javaScript:OpenScript('页二?Result=aaaaaaa...
页一:
<form name="editForm" method="post">
<a href="javaScript:OpenScript('页二?Result=aaaaaaaaaa',400,20)"><input name="aaaaaaaaaa" type="text" value=""><img src="../images/button_login2.png" id="aaaaaaaaaa"></a>
</form>
页二:
<script language="JavaScript">
<!--
function CopyPath(FilePath,FileSize)
{
var str=location.toString()
var Result=((((str.split('?'))[1]).split('='))[1]);
window.opener.editForm(Result).focus();
window.opener.document.editForm(Result).value=FilePath;
if (Result == "FileUrl")
{
window.opener.document.editForm.FileSize.value=FileSize;
}
window.opener=null;
window.close();
}
//-->
</script>
问题:现在仅可以将值回传给input里的value,不知道如何将值也回传src 展开
<form name="editForm" method="post">
<a href="javaScript:OpenScript('页二?Result=aaaaaaaaaa',400,20)"><input name="aaaaaaaaaa" type="text" value=""><img src="../images/button_login2.png" id="aaaaaaaaaa"></a>
</form>
页二:
<script language="JavaScript">
<!--
function CopyPath(FilePath,FileSize)
{
var str=location.toString()
var Result=((((str.split('?'))[1]).split('='))[1]);
window.opener.editForm(Result).focus();
window.opener.document.editForm(Result).value=FilePath;
if (Result == "FileUrl")
{
window.opener.document.editForm.FileSize.value=FileSize;
}
window.opener=null;
window.close();
}
//-->
</script>
问题:现在仅可以将值回传给input里的value,不知道如何将值也回传src 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询