views:

300

answers:

1

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() {
$("#123").autocomplete("www.google.se");
}); 


</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)

EDIT: changed the autocomplete code to have no dependencies on methods or textboxes

+1  A: 

Add Firebug Lite to the page and then use console.log() to find out which object and method the error is referring to.

scribu
+1 for in-page Firebug. I had no idea that existed!
Paperjam