刷新标签中的iframe,调用iframe中的函数

if(Ext.isIE){
if(parent.document.frames[id].document.getElementById("graphContainer") != null){
//parent.document.frames[id].document.location.reload(); /*刷新页面法,体验不好,取消*/
parent.document.frames[id].run(); /*调用页面中的run函数,流程页面中必须有此函数*/
}
}else{
if(document.getElementById(id).contentDocument.getElementById("graphContainer") != null){
//document.getElementById(id).contentDocument.location.reload(true); 
document.getElementById(id).contentWindow.run();

posted @ 2012-06-21 13:12  meetrice  阅读(243)  评论(0编辑  收藏  举报