posted @ 2018-11-01 09:20 yiyishuitian 阅读(272) 评论(0) 推荐(0) 编辑
摘要:
如果IFrame_A 想执行 IFrame_B 中 RefreshSelf() 函数,可以按以下方法写: 阅读全文
|
|
摘要:
如果IFrame_A 想执行 IFrame_B 中 RefreshSelf() 函数,可以按以下方法写: 阅读全文
posted @ 2018-11-01 09:20 yiyishuitian 阅读(272) 评论(0) 推荐(0) 编辑
摘要:
CRM 中定义以下函数: windows.parent.functionname(){ //do somethion } IFrame 子页面调用 JS: windows.parent.functionname(); 简单 alert(); 可以执行,复杂函数提供跨域之类错误。 其它方法见此前另一文 阅读全文
posted @ 2018-11-01 09:14 yiyishuitian 阅读(193) 评论(0) 推荐(0) 编辑
摘要:
说白了就是一个IFrame页面,执行另一IFrame页面的函数。 var RefreshSelf = function () { App.gridpanel.store.load(); } 阅读全文
posted @ 2018-11-01 09:08 yiyishuitian 阅读(306) 评论(0) 推荐(0) 编辑
摘要:
思路是 : 1 创建一个字段“new_xxx”。 2 注册字段 OnChange 事件。 3 OnChange 事件 刷新 IFrame_B子页面。 4 IFrame_A 修改 父页面 “new_xxx”字段 5 “new_xxx”字段 触发 OnChange 事件刷新 IFrame_B子页面。 阅读全文
posted @ 2018-11-01 09:01 yiyishuitian 阅读(346) 评论(0) 推荐(0) 编辑
摘要:
当然,可以设置 new_xxxx 字段的OnChange 事件,这样就可以通过OnChange事件做更多的事情。 调用时需写入以下代码:fireOnChange 以激活字段OnChange事件。 阅读全文
posted @ 2018-11-01 08:54 yiyishuitian 阅读(280) 评论(0) 推荐(0) 编辑
摘要:
CRM代码: var iframe = Xrm.Page.getControl("IFRAME_xxx").getObject(); iframe.contentWindow.RefreshSelf(); IFrame 代码: var RefreshSelf = function() { // do something } 阅读全文
posted @ 2018-11-01 08:49 yiyishuitian 阅读(185) 评论(0) 推荐(0) 编辑 |
|