我的表格有问题。一旦 jcepopup 窗口关闭,我需要执行查询,但到目前为止我无法使其工作。我尝试了以下代码:
function passVal(val1,val2){
parent.document.getElementById('award_number').value=val1;
parent.document.getElementById('award_name').value=val2;
parent.document.getElementById('aw_number').value=val1;
parent.document.getElementById('aw_name').value=val2;
window.onunload = refreshParent;
window.parent.jcepopup.close();
}
window.onunload = refreshParent;
function refreshParent() {
window.opener.location.reload();
}
但是,到目前为止它不起作用,至少不是重新加载部分。它返回值,但我不能使用它们来触发我想使用的下一个查询。
无论如何,我愿意接受建议。谢谢