需要关闭我的子窗口的进度(弹出窗口) [英] need Progress on close of my child window(Popup window)
本文介绍了需要关闭我的子窗口的进度(弹出窗口)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的父窗口中有模型弹出窗口。当我关闭模型弹出窗口时,我需要刷新父页面中的网格视图。所以我使用java脚本使用吹码重新加载页面
Hi,
I have model popup in my parent window. when i close the model popup i need to refresh the grid view in parent page. so that i am using java script to reload the page with use of blow code
function cancel() {
window.parent.document.getElementById('btnCancel').click();
window.parent.location.replace(window.parent.location.href);
}
但需要更多时间。请建议我激活更多用户友好.i试图给进度条显示图像正在进行中。还没有工作
but it is taking more time.please suggest me to active more user friendly .i tried to give progress bar to show image its in progress.its also not working
推荐答案
<script>
window.onunload = refreshParent;
function refreshParent() {
window.opener.location.reload();
}
</script>
将此脚本添加到弹出窗口
add this script to your popup window
这篇关于需要关闭我的子窗口的进度(弹出窗口)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文