jQuery Block UI: node is undefined

Posted by stef on Stack Overflow See other posts from Stack Overflow or by stef
Published on 2010-06-09T19:42:49Z Indexed on 2010/06/09 19:52 UTC
Read the original article Hit count: 759

Filed under:

I'm close to finishing an app that uses quite a bit of JS. Recently Firebug started throwing an error that says "node is undefined", referring to data.parent = node.parentNode; on line 209 of jQuery blockUI plugin Version 2.31 (06-JAN-2010) @requires jQuery v1.2.3 or later. I'm using jQuery 1.4.2

When I remove the code from my page that triggers the Block UI action, the error is still there. So it does not seem to be an issue in my code but an "error" in the file itself, or perhaps some kind of conflict with another file?

For info my code is below. My IDE is highlighting some syntax errors in here but it does that even when there are none. Perhaps I'm missing it?

 $.blockUI({ css: { 
                border: 'none', 
                padding: '25px', 
                backgroundColor: '#fff', 
                '-webkit-border-radius': '10px', 
                '-moz-border-radius': '10px', 
                opacity: 1, 
                color: '#000' ,
                cursor: 'auto'
            },
                message: $('#block_ui_msg'),
             });

EDIT: I just replaced the block UI file with the latest version 2.33 (29-MAR-2010), error still occurs but this time on line 210.

© Stack Overflow or respective owner

Related posts about jQuery