使用jQuery.blockUI()插件时IE7出错 [英] Error in IE7 when using jQuery.blockUI() plugin

查看:146
本文介绍了使用jQuery.blockUI()插件时IE7出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用blockUI()作为show modal表单时,我在jquery.js中遇到错误:
无效参数(第1061行)(jquery.js)
在stingelem [name] ] =值in .attr()方法。

When I'm using blockUI() for show modal form I've got error in jquery.js: Invalid argument (line 1061) (jquery.js) At sting "elem[ name ] = value" in .attr() method.

JavaScript代码:
复制代码

JavaScript code: Copy code

$('#deviceAddFormButton').click(function() {
    $.blockUI({
      message: $('#deviceAdd')
    })
})

HTML只是......,没什么特别的

HTML is just ..., nothing extraordinary

我正在使用jQuery 1.3.2,blockUI 2.35。这个错误只在IE中出现(Safari,Opera,Chromium,FireFox看起来不错:)。

I'm using jQuery 1.3.2, blockUI 2.35. This error was thowing only in IE (Safari, Opera, Chromium, FireFox looks good:)

推荐答案

我已经准确了同样的问题,如果我检测到IE6或7,我通过不使用blockUI css选项中的某些CSS项来解决它。

I've had this exact same problem, and I solved it by not using certain CSS items in the blockUI css option if I detect IE6 or 7.

出于某种原因,设置不透明度会导致jQuery抛出错误而不是忽略它。

For some reason, setting things like opacity causes jQuery to throw an error rather than ignore it.

这篇关于使用jQuery.blockUI()插件时IE7出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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