Jquery ui autocomplete not working in ie8 (while page refresh)
I am using jquery ui autocomplete, it works absolutely fine in all browsers except ie8.
I've been doing some tests and there seems to be a strange error. When I click on the link leading to the corresponding page, the following error is generated by ie8 when I start typing in the autocomplete field:
'object does not support this property or method' this error points to my development jQuery file (1.4.2) at line 4955, char 5, which is the following line: return new window.XMLHttpRequest ();
However, if I just reload the page the autocomplete works.
I added a random bit of data that gets called with autocomplete when I read that ie8 is caching its ajax get requests, but that didn't seem to solve the problem.
Could there be a problem with the load times of all relevant files including jquery? If so, how do I fix this? Any other smart ideas ?!
Andy
a source to share
After a lot of trial and error, I found the answer to be very simple!
I was calling the meta tag ...
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
... after including javascript files. All other browsers except IE8 allow this.
This will be a lesson that I will not forget soon - many hours spent on fixing!
a source to share