jquery.autocomplete doesn't work in compability mode
- by Oskar Kjellin
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)