Microsoft JScript runtime error object expected with jQuery
I was trying to get a simple piece of jQuery to work and was running up against this error in Internet Explorer (IE):
Microsoft JScript runtime error: object expected
The problem turned out to be that I wasn't referencing jQuery to the correct path. The trick I discovered, if you're using Visual Studio, is to just drag the JavaScript file from the Solution Explorer into the <head> element on your page and it will insert the correct reference for you.
UPDATE (9 July 2009):
I am referencing jQuery from the Google CDN now:
<script src="http://www.google.com/jsapi"></script>
<script>
google.load("jquery", "1.3.2");
google.load("jqueryui", "1.7.2");
</script>
Using this technique will also get rid of this error and improve performance.