当前位置: 动力学知识库 > 问答 > 编程问答 >

asp.net mvc - Jquery Ajax autocomplete not firing for some users

问题描述:

I have a site I'm in which some users' autocomplete is not firing in some instances of IE 11. For other users on different machines, it is. Its in development so I can test these cases locally on different dev's machines. In fiddler, when it is not working, the request doesn't even fire, so its not like its requesting and failing. I tried tweaking internet options in IE to no avail. Disabled addons, trusted local sites.

Heres the code that works on some IE instances

$("#prodSearch").autocomplete({

minLength: 2,

source: function (request, response) {

$.ajax({

url: "/home/SearchProductCodeAutoComplete", type: "Post", dataType: "json",

data: {

searchText: request.term,

maxResults: 15

},

cache: false,

success: function (data) {

response($.map(data, function (item) {

return {

label: item.ID + ' - ' + item.Description,

value: item.ID, id: item.ID

}

}))

}

})

},

select: function (event, ui) {

//do stuff

}

});

I've tried both Get and Post, no cache in controller

分享给朋友:
您可能感兴趣的文章:
随机阅读: