jquery.autocomplete doesn't work in compability mode


jquery.autocomplete doesn't work in compability mode



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


jQUERY onclick post

1:

What is the best way to store WMD input/markdown in SQL server and display later?
Add Firebug Lite to the page and then use console.log() to find out which object and method the error is referring to.. OutOfMemoryException C# When Uploading Image Files
Using HttpContext.Current.Application to store simple data

96 out of 100 based on 71 user ratings 306 reviews

@