Comments (5)
a.com使用iframe包含了b.com.在b.com中使用这个js,那么在ie下面
document.activeElement属性将会导致无权访问而出错,整个js不能初始化.
临时使用try catch处理
from artdialog.
请问你的artDialog版本号是?IE版本是?
from artdialog.
ie10正常模式测试.
个人认为是焦点首先在top页面,获取时会无权限.
某人的解决方案是,先让本iframe:document.documentElement.focus();再取,只不过,看功能.
直接try catch,出错就不需要进行这步,毕竟重新的focus也是没必要了.
http://stackoverflow.com/questions/14378224/document-activeelement-in-iframe-shows-unspecified-error-in-ie-standards-mode
- artDialog 5.0.3
from artdialog.
我是ie8 + artDialog 5.0.4运行上面的例子出错,在ie8以上就没问题,跟了一下发现是后弹出的窗口关闭时试图恢复焦点,可 _activeElement却落在了前一个窗口的Save按钮上,而ajax操作是异步的,前一个窗口在后弹出的窗口关闭时应已经关闭了,有可能就因此出错了
看代码本身的注释是说这段代码用于“恢复焦点,照顾键盘操作的用户”,我现在的临时解决就是按qidizi所说
try catch不让出错,但没想清楚是否合适
from artdialog.
已经修复
from artdialog.
Related Issues (20)
- 气泡背景颜色可以设置么,在哪里可以看到skin的具体可以设置哪些className HOT 1
- 应该是不支持IE8吧 HOT 1
- 不显示title的时候能显示右上角的关闭按钮吗? HOT 1
- 能否提供纯净jquery版呢? HOT 1
- 如何在content中添加自定义vue组件? HOT 3
- 这是我写的Layx弹窗
- 弹框有bug HOT 2
- 希望出一个VUE版本的,谢谢
- 不兼容IE678 HOT 1
- 如何使用react 引入artdialog HOT 3
- 请问一下close()和hide()方法的区别是什么?能用文字和实例讲解一下吗? HOT 1
- content是HTML,加载的时候窗口出现在右下角!
- webpack 打包dist有问题
- css样式兼容问题
- 现在支持手动放大和缩小弹框吗
- 拖拽拖动到屏幕外能否作为配置来支持?
- 文档示例地址打不开了欸,谁有简单的示例吗 HOT 1
- 请问此项目作者不维护了吗? HOT 1
- 嵌套调用artDialog时,数据无法穿透 HOT 1
- jquery4.0下有问题 数组判断错误 导致无法弹窗
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from artdialog.