首页 > 解决方案 > 标题显示繁忙的图像在 IE11 中不工作它在 IE11 兼容模式下工作 IE8 chrome firefox

问题描述

GScommon_header_inc.jsp

<script>

  function createFromPredecessor(params) {
      var request = "<isa:webappsURL name="b2b/createfrompredecessor.do" xsrfprotection="true"/>";
      request = request + "<%= WebUtil.adoptParamsXSRF("?") %>" + params;
      var myTop = form_input();
        if (typeof isaTop == 'function' && isaTop().header) {
         isaTop().header.busy(parent.form_input);
      }

      myTop.location.href = request;

  }
</script>

繁忙的.js

function busy(frameObject) {

    try {
        with(frameObject.document){
            // get all the stylesheets from the header
            var allStylesheets = this.window.document.styleSheets;

            writeln("<html><head>");
            // add the css sheets
            for(var i = 0; i < allStylesheets.length; i++) {
                writeln('<link type="text/css" rel="stylesheet" href="' + allStylesheets[i].href + '" />\n');
            }
            // add the rest
            writeln("</head>\n<body><div id='busy'>\n" +
                "<img src='<%=WebUtil.getMimeURL(pageContext, "b2b/mimes/images/busy.gif") %>' alt='<isa:UCtranslate key="b2b.busy.message"/>' />" +
                "<p><isa:UCtranslate key="b2b.busy.message"/></p>" +
                "</div></body></html>");
        }
        frameObject.document.close();
    }
    catch (e) {}
}

框架.js

function isaTop() {

    var tmpWnd = window;
    var lastWnd = tmpWnd;    

    try {
        while (tmpWnd.name != "isaTop" && tmpWnd.parent != tmpWnd) {
             lastWnd = tmpWnd;
             tmpWnd = tmpWnd.parent;
        }
    }    
    catch (e) {
     // this can happen because of domain relaxation!
        tmpWnd = lastWnd;
    }    
    return tmpWnd;
}

function header() {

    return isaTop().header;

}


function work_history() {

    return isaTop().work_history;

}


function form_input() {

    return isaTop().work_history.form_input;

}

function getHistoryFrame() {

    return isaTop().work_history._history;

}

function setHistoryFrameUrl(url) {

    if (isaTop().work_history) {

        if (isaTop().work_history._history) {
            var myFrame = isaTop().work_history._history;
            myFrame.location.href = url;
        }else alert('no history');
    }
    else alert('no workhistory');
}

function closer_history() {

    return isaTop().work_history.closer_history;

}

function documents() {

    return isaTop().work_history.documents;

}

function organizer_nav() {

    return isaTop().organizer_nav;

}


function organizer_content() {

    return isaTop().organizer_content;

}


你能帮我解决这个问题吗?我需要写标题忙直到页面被加载

标签: javascript

解决方案


推荐阅读