crm 2016 tabstatechange event

时间:2023-03-09 08:56:48
crm 2016 tabstatechange event

1 tabstatechange事件在窗体中定义

crm 2016 tabstatechange event

2 问题是如果选项卡默认为折叠的.且选项卡中包含了iFrame网页.

3 在网页内容加载完成之后,点击选项卡 折叠/展开 按钮, iFrame网页没有正常加载内容.

4 解决方法是 加入 setTimeout

function onload_xxx() {

    setTimeout(function () { _xxx();  }, 500);

}

function _xxx() {
//加载 var url = "http://" + document.URL.split("/")[2] + "xxx.html?x=1&y=2&name=bgx"; Xrm.Page.getControl('IFRAME_xxx').setSrc(url);
}
}