简单模态,jQuery 1.8.0和IE9 [英] Simple Modal, jQuery 1.8.0 and IE9

查看:120
本文介绍了简单模态,jQuery 1.8.0和IE9的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

简单模态在jQuery 1.8.0和IE9上失败,并显示以下错误:

SCRIPT438:对象不支持属性或方法'removeExpression'

以下小提琴演示了(记住要与IE9一起运行)

http://jsfiddle.net/ericjohannsen/ZVEWa/1/

将jQuery切换到1.7.2会导致错误消失.

有没有办法解决这个问题?

可能相关(OP表示问题出在jQuery 1.7.1和iframe)

SimpleModal在IE 9(在Iframe内部)不起作用

不相关(jQuery 1.5问题)

在IE9中具有简单模式的问题

解决方案

似乎可以通过将$ .boxModel更改为$ .support.boxModel来解决此问题.您可以在 http://github.com/ericmmartin/simplemodal 中获取更新的版本.

我将尝试尽快获得一个完整的发行版,其中包含最小版本.

[edit] SimpleModal 1.4.3已已发布,并应解决此问题

Simple Modal fails with jQuery 1.8.0 and IE9 with the error:

SCRIPT438: Object doesn't support property or method 'removeExpression'

The following fiddle demonstrates (remember to run with IE9)

http://jsfiddle.net/ericjohannsen/ZVEWa/1/

Switching jQuery to 1.7.2 causes the error to go away.

Is there a way to work around this?

Possibly Related (OP says the issue was with jQuery 1.7.1 & iframes)

SimpleModal doesn't work in IE 9 (inside Iframe)

Unrelated (jQuery 1.5 issue)

Problems with simple modal in IE9

解决方案

It appears that the issue can be resolved by changing $.boxModel to $.support.boxModel. You can grab an updated version at http://github.com/ericmmartin/simplemodal.

I will try and get a fully packaged release, with min version, out shortly.

[edit] SimpleModal 1.4.3 has been released and should resolve this issue

这篇关于简单模态,jQuery 1.8.0和IE9的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆