我目前正在处理一些IE11兼容性问题。 该代码在兼容模式下function完全正常,因为之前优化的是IE5。
受影响的代码如下:
/* * This function sets the specified button state in the repair processing form */ function setoperationButton(buttonId,disabledState,sourceImage,styleCursor) { var buttonElement = document.frmRepairProcessing.elements[buttonId]; var sourceRoot = '<%=helper.getApplicationURL()%>' + '/zimages/' + '<%=localeString%>' + '/'; buttonElement.disabled = disabledState; buttonElement.src = sourceRoot + sourceImage; buttonElement.style.cursor = styleCursor; }
所以我想代码只需要更新使用getElementById,但我不太清楚如何实现特定的forms。
请注意:我也尝试过document.forms()。elements()和.value。
Windows Media Player将不会从IE11中的链接播放.WMV
Windows 8.1 / IE11自定义URL协议打开 – > about:空白
在IE11(Windows 7)中从Cloudfront下载的可执行文件无需文件扩展名即可下载
IE不能访问本地主机,但铬和Firefox工作
不能得到BHO在64位工作
在Windows 8.1 + IE 11 +环回中不允许Web套接字客户端连接问题
在Internet Explorer中强制打开用于XML文件下载的button
Internet Explorer 11(IE 11)使用DOMParser中的parseFromString引发语法错误
如何在Windows 10上强制安装IE 11?
我相信使用下面的代码来获取buttonElement是可以接受的:
function setoperationButton(buttonId,styleCursor) { var buttonElement = document.getElementById(buttonId); var sourceRoot = '<%=helper.getApplicationURL()%>' + '/zimages/' + '<%=localeString%>' + '/'; buttonElement.disabled = disabledState; buttonElement.src = sourceRoot + sourceImage; buttonElement.style.cursor = styleCursor; }
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。