开发者

Error in IE7 when using jQuery.blockUI() plugin

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 code: Copy code

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

HTML is just ..., nothing extraordinary

I'm using jQuery 1.3.2, blockUI 2.35. This error was thowing only in IE (Safari, Opera, Chromium, Fi开发者_JAVA百科reFox looks good:)


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.

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜