javascript - 标题显示繁忙的图像在 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;
}
你能帮我解决这个问题吗?我需要写标题忙直到页面被加载
解决方案
推荐阅读
- sharepoint - mapping/migrating sharepoint users
- wso2 - 在 SCIM2 端点中公开自定义声明 - WSO2
- python - 如何使用python更新db2表中列的所有值
- java - 使用泛型休眠多对一双向
- sql - SQL 按整数值的连续范围分组
- java - 无法在动态创建的 Webview 中访问相机
- angular - forChild 和 forRoot 与路由器模块一起使用
- java - 使用 Selenium/Katalon 在 html 表上进行迭代
- powershell - 如何在“Invoke-Expression”中使用变量作为命令的参数
- angular - 如何将 css 应用于 ngx-formly 表单域?