listview是在后台绑定数据源的,想在关闭弹窗的时候绑定下listview让新加入的数据显示出来

解决方案 »

  1.   

    1 父窗口:
    <script type="text/javascript">
    function openBrWindowInCentre(theURL,width,height) {
          var left, top;
          left = (window.screen.availWidth - width) / 2;
          top = (window.screen.availHeight - height) / 2;
          var per = 'width=' + width + ',height=' + height + ',left=' + left + ',top=' + top + ',screenX=' + left + ',screenY=' + top;
          window.open(theURL,'',per);
        }
    </script>
    <a href="javascript:void(0)" onclick="openBrWindowInCentre('child.html','600','400');">打开子窗口</a> 2. 子窗口 
    < script language="JavaScript" type="text/javascript"> 
    < !-- 
    function refreshParent() { 
    window.opener.location.href = window.opener.location.href; 
    if (window.opener.progressWindow) 

    window.opener.progressWindow.close(); 

    window.close(); 
    } //--> 
    < /script> < a href="javascript:void(0)" onclick="refreshParent()">刷新父窗口并关闭当前窗口</a>
      

  2.   

    这个弹出框是本页面中的一块div,弹出的是dialog,不想刷新整个页面,只想刷新listview