Solution (from here):
Find line 4954 in jQuery-1.4.2.js,
return new window.XMLHttpRequest();
modified to
if(!$.browser.msie) {
return new window.XMLHttpRequest() ;
} else {
return new window.ActiveXObject("Microsoft.XMLHTTP");
}
Over.
The reason is probably IE7/8 There is a little problem with the support for XMLHttpRequest. If the server does not send the charset HTTP Header correctly, it cannot be used normally. However, after the page is loaded, the charset can be determined by parsing the HTML Header, so the second loading of the web page will be normal.
Then let them use ActiveXObject.
Refer to the original English description:
http://www.yiiframework.com/forum/index.php?/topic/9739-auto-complete-ajax-problems-in-ie-with-jquery -142/