Error in IE7 when using jQuery.blockUI() plugin

雨燕双飞 提交于 2019-12-13 03:36:31

问题


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, FireFox looks good:)


回答1:


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.



来源:https://stackoverflow.com/questions/4284839/error-in-ie7-when-using-jquery-blockui-plugin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!