B页面改用setTimeout()来执行刷新吧,根据是否非模态对话框返回的值来决定是否跳转

解决方案 »

  1.   

    不用刷新,用Xmlhttp结合setInterval来定时访问数据库
      

  2.   


    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" >
    <% if(1==1)//如果没有新信息
    {
    %><meta http-equiv="refresh" content="20"><%
    }
    else{
    %><script language=javascript>window.showModelessDialog("about:<input type=button value=OK onclick='dialogArguments.location.reload();'>",window,"");</script><%
    }
    %>
    <title>支持民族工业,尽量少买日货</title>
    </head>
      

  3.   

    <html xmlns:IE>
    <head>
    <title>对话框使用Download Behavior刷新</title>
    </head>
    <script>
    function showPage()
    {
    oDownload.startDownload("active.asp",onDownloadDone);
    setTimeout("showPage()",1000*120);
    }
    function onDownloadDone(s)
    {
      return true
    }
    </script>
    <body onload="setTimeout('showPage()',1000*120)">
    <IE:DOWNLOAD ID="oDownload" STYLE="behavior:url(#default#download)" />
    </body>
      

  4.   

    active.asp 可以不返回任何代码,
    如果有代码,在 onDownloadDone(s) 中 s就是代码
    可以是一段脚本
    然后 eval(s) 就可以了