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

对着背影说爱祢 提交于 2019-12-02 02:14:15

Sounds like you are trying to use the asynchronous Ajax-call synchronously.

You should use a callback-function in which you retreive the data.

= or =

You should configure the call to be synchronous:

jQuery.ajax( {async: false} );
Andy

After lots 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 the javascript include files. All other browsers except IE8 allowed this.

That'll be a lesson I won't forget soon - many hours spent fixing!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!