jquery ui autocomplete not working in ie8 (until page refresh)

Posted by Andy Simpson on Stack Overflow See other posts from Stack Overflow or by Andy Simpson
Published on 2010-05-12T21:52:40Z Indexed on 2010/05/12 22:14 UTC
Read the original article Hit count: 837

Hello all, I am using jquery ui autocomplete it is working absolutely fine in all browsers except ie8.

I have been doing some testing and there seems to be a strange bug. When I click on a link leading to the relevant page there is the following error generated by ie8 when I start typing in the autocomplete box:

'object doesn't support this property or method' this error points to my development jquery(1.4.2) file at line 4955, char 5 which is the following line: return new window.XMLHttpRequest();

However, if I simply reload the page the autocomplete works.

I have added a random bit of data to be called with the autocomplete as I read that ie8 caches it ajax get requests but this does not seem to have solved the problem.

Could there be a problem with the timing of the loading of all the relevant files including jquery? If so, how would I fix this? Any other clever ideas?!

Andy

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jquery-ui