jQuery - Object Expected on IE and $(document).ready(function() {});

前端 未结 5 1996
不知归路
不知归路 2021-01-15 19:48

I have a page ([LINK REMOVED]) that works completely well in FireFox and Chrome, but for some reason I am getting an \"Object Expected\" error in most, if not all versions o

5条回答
  •  孤独总比滥情好
    2021-01-15 20:16

    Here's one problem that can cause IE to choke where other browsers may not:

    $('#' + resultDivName).animate({
      height: '300px', // <=== TRAILING COMMA
    }, 500, function() {
      // Animation complete.
    });  
    

    Then, in your qtip call, you have:

    target: 'popPart_WM300BP'
    

    I believe target takes a jQuery DOM object, not a string. DebugBar points to this line as the cause of "object expected".

    Finally, it looks like this version of jQuery Tools includes jQuery 1.4.2. Perhaps 1.4.3 or 1.4.4 would be worth a try.

提交回复
热议问题