Outlook加载项无法重新加载页面location.reload(true); [英] Outlook Add-In fails to reload page location.reload(true);

查看:145
本文介绍了Outlook加载项无法重新加载页面location.reload(true);的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

仅在Internet Explorer中(适用于Chrome和FireFox),执行位置重新加载行时,脚本不会重新加载页面。  相反,在控制台中,我得到以下两个条目: 


Agave.HostCall.IssueCall


Agave.HostCall.ReceiveResponse


为什么会在IE中出现这种情况,而不是其他浏览器以及如何修复它?



函数onQuerySucceeded (){

        var userEmail = web.get_currentUser()。get_email();

        if(userEmail.length> 0){

            location.reload(true);

            clearTimeout(tid);



        }¥b $ b       否则{

            if(tid!= null)

                clearTimeout(tid);

            tid = window.setTimeout(function(){checkForCurrentUser()},1000);
$


        }¥b $ b    }






                        

解决方案

您好,


此论坛适用于与Outlook相关的编程问题。我建议在
上询问Office Apps特定问题
为Office 2013开发应用程序 
论坛代替。


In Internet Explorer only (works in Chrome and FireFox), when the location reload line is executed the script does not reload the page.  Instead, in the console I get the following 2 entries: 

Agave.HostCall.IssueCall

Agave.HostCall.ReceiveResponse

Any ideas why this happen in IE, not other browsers and how to fix it?

function onQuerySucceeded() {
        var userEmail = web.get_currentUser().get_email();
        if (userEmail.length > 0) {
            location.reload(true);
            clearTimeout(tid);

        }
        else {
            if (tid != null)
                clearTimeout(tid);
            tid = window.setTimeout(function () { checkForCurrentUser() }, 1000);

        }
    }


                        

解决方案

Hello,

The forum is for Outlook related programming questions. I'd suggest asking Office Apps specific questions on the Developing Apps for Office 2013  forum instead.


这篇关于Outlook加载项无法重新加载页面location.reload(true);的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆