jQuery UI Autocomplete: Problems on IE 6 and IE 7

jQuery UI Autocomplete: Problems on IE 6 and IE 7

Hello,

I'm using jQuery 1.4.1 with jQuery UI 1.8 to create an autocomplete widget.  The widget works great on Firefox, but fails on IE 6 and IE 7 with the following unhelpful message:

Error: 'length' is null or not an object
Code:0

The autocomplete widget appears to send the term to my server.  The failure occurs sometime after the server has sent the response that contains the search JSON result.  The list of results never appears, and the error badge appears in the lower-left corner of the IE browser window.

I've tried the jQuery autocomplete demos using IE 6 and 7 and they work OK, but for some reason it's not working in my application.

I'm not doing anything out of the ordinary that would seem to be causing the error.  I do use a custom "select" method to do some work after the user has selected an item, but that method never gets called since the autocomplete list never gets displayed in the first place.  Even so, I removed the custom "select" method and the problem persisted.

Until this error occurs there are no other JavaScript errors on the page.

Does anybody have any idea what could be going wrong and how I could fix it?  I did some web searches and I saw what appeared to be similar issues with the date widget (related to firing onChange events or something like that?) but other than that I've had no luck.

Could it be anything with the JSON response the server is returning?  It looks OK to me but maybe I'm missing something.

Again, it works in Firefox, so there must be some IE quirk I'm missing.

Thank you for your help!!!!

-Ryan