GETBOUNDINGCLIENTRECT CAUSES 'UNSPECIFIED ERROR' IN IE7 AFTER AJAX in Jquery 1.4.2
来源:互联网 发布:cad for mac打不开 编辑:程序博客网 时间:2024/04/30 20:14
/*By Jiangong SUN*/
Here is the solution :
In jquery.1.4.2.js,
replace :
var box = elem.getBoundingClientRect(),
with :
var box = null;try { box = elem.getBoundingClientRect();} catch(e) { box = { top : elem.offsetTop, left : elem.offsetLeft }};
In jquery.1.4.2.min.js,
replace :
var d=b.getBoundingClientRect(),
with :
try{var d=b.getBoundingClientRect();}catch(ex){var d={top:0,left:0,right:0,bottom:0};}
Enjoy coding !
- GETBOUNDINGCLIENTRECT CAUSES 'UNSPECIFIED ERROR' IN IE7 AFTER AJAX in Jquery 1.4.2
- getBoundingClientRect in js
- Setting Page.Header.Title in the codeBehind causes an UpdatePanel to not render after a callback
- jquery/ajax in jsp
- ERROR 1062 (23000): ALTER TABLE causes auto_increment resequencing, resulting in duplicate entry '1'
- error: declaration may not appear after executable statement in block
- error: declaration may not appear after executable statement in block
- error: declaration may not appear after executable statement in block
- error: declaration may not appear after executable statement in block
- Upgrading to VMware Tools 5.x causes log spew with the message: Error in the RPC receive loop: RpcIn
- Native Ajax in Django and jQuery
- Some causes for insufficient data display in Extjs grid
- [论文笔记]Automated Identification of Failure Causes in System Logs
- BUG: MARK in OUTPUT + ip_tunnel causes kernel panic
- Error 80004005 Unspecified Error
- TFS Project error in SQL Server 2005 after installing SQL Server 2008
- KeilMDK 编译报错:error: #268: declaration may not appear after executable statement in block
- error: #268: declaration may not appear after executabl statement in block
- ActiveX异步回调JavaScript(通过事件方式) .
- IT相关网站列表
- linux内核中链表的实现
- epoll 详解
- jquery实现网页抽奖程序
- GETBOUNDINGCLIENTRECT CAUSES 'UNSPECIFIED ERROR' IN IE7 AFTER AJAX in Jquery 1.4.2
- 用 Javascript 获取頁面大小、窗口大小和滾動條位置
- Job-oriented Student
- 代码对比
- VC++信息安全编程(9)基于24位bmp位图的信息隐藏
- 123.Do well and have well. 善有善报
- VC++信息安全编程(10)基于一阶Bézier曲线的信息隐藏编程实例
- VC++信息安全编程(11)安全删除NTFS磁盘数据文件
- win32 udp