jquery.autocomplete doesn't work in compability mode

Posted by Oskar Kjellin on Stack Overflow See other posts from Stack Overflow or by Oskar Kjellin
Published on 2010-05-24T21:59:33Z Indexed on 2010/05/24 22:01 UTC
Read the original article Hit count: 924

Filed under:
|
|

I've read all the results I can find on SO about this without finding anything that applies to me, so don't judge me too quickly :)

I am using jquery.autocomplete downloaded from here: http://www.dyve.net/jquery/?autocomplete together with http://ajax.microsoft.com/ajax/jquery/jquery-1.3.2.js

This all works well in IE8 and FF, but as soon as I activate compability mode in IE8 I keep getting:

Microsoft JScript runtime error: Object doesn't support this property or method

When looking in the call stack, This is the one where it breaks:

<script type="text/javascript">
    $().ready(function() {
    $("#friendsearch").autocomplete("/Account/FindFriends");
}); 


</script>

and then the calling function is this:

    if ( jQuery.readyList ) {
        // Execute all of them
        jQuery.each( jQuery.readyList, function(){
            this.call( document, jQuery );
        });
        // Reset the list of functions
        jQuery.readyList = null;
    }

where this line throws the error:

this.call( document, jQuery );

Does anybody know why this happens? As mentioned above, works super in IE8 and firefox, but not in compability mode(IE7)

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about asp.net-mvc