IE7 jQuery(document).ready() problem

Posted by Zendog74 on Stack Overflow See other posts from Stack Overflow or by Zendog74
Published on 2010-05-26T11:27:32Z Indexed on 2010/05/26 11:31 UTC
Read the original article Hit count: 177

Filed under:

I have a page that works perfectly fine in Firefox, but is throwing an error in IE. I am loading jQuery dynamically (if it is not already loaded), and then doing some stuff in the jQuery(document).ready() block. However, IE throws the dreaded "Object expected" error when it hits the jQuery(document).ready() block.

You can view the full page code here: http://www.pastie.org/977767

IE is throwing the error right at jQuery(document).ready().

Any ideas as to what is going here? Again, this works perfectly fine in Firefox. It seems almost like IE thinks jQuery is loaded but it really isn't yet or that jQuery is still loading when the jQuery(document).ready() block is encountered?

© Stack Overflow or respective owner

Related posts about jQuery