记录阿里巴巴QA架构组成长点滴。2008年关键词为效率,技术,影响力!QA/测试架构师定义:开发和设计测试框架测试库;纵横全局的考虑产品的功能,设计复杂的测试系统;负责研发某一项特定的测试技术;为公司考虑如何提高测试效率。领导公司测试技术的发展和测试策略上的方向,关注整个公司的测试部门的问题,前瞻性的考虑未来的版本的测试策略和技术。测试架构师计划/设计测试平台,关注着产品的测试过程,提供咨询服务,影响到公司内的测试机构测试社区,以及开发机构等,对产品各个方面施加深远而正确的影响,最终提高整体软件质量。

子html 页面刷新父页面并关闭

上一篇 / 下一篇  2008-10-16 01:11:58 / 个人分类:开源工具与新技术研究

Child.html 关闭刷新父页面并关闭

 

 

if (window.opener && !window.opener.closed) {

                                  

                                          var site=document.getElementById("hidden_currSite").value;

                                         

                                          var publishdate=document.getElementById("publishdate").value;

                                         

                                          var str_url="project.do?site="+site +"&publishdate="+publishdate;

                                                                                    window.opener.location.href=str_url;          

                                          //window.opener.location.reload();                         

         }

 

window.close();

 

 

html页面:

 

window.open("child.htm ?projectid="+projectid+"&site="+site);

 

同时为了保证取到更新的数据,应该禁止cache

<Html>

<head>

       <meta http-equiv="pragma" content="no-cache">

 <meta http-equiv="cache-control" content="no-cache, must-revalidate"> 

    <meta http-equiv="expires" content="0">

</head>

 

 

有朋友可能对不用window.opener.location.reload(); 存疑。

 

当父页面之前是http post 请求,用window.opener.location.reload(); 会导致再次Post,这个可能不是我们期望的结果。

 


TAG: javascript 子窗口 开源工具与新技术研究

 

评分:0

我来说两句

日历

« 2024-04-17  
 123456
78910111213
14151617181920
21222324252627
282930    

数据统计

  • 访问量: 154102
  • 日志数: 163
  • 文件数: 1
  • 建立时间: 2008-02-26
  • 更新时间: 2008-12-10

RSS订阅

Open Toolbar