I've got a autocomplete textbox requesting an IHttphandler via IIS7 written in C#.
But the requests that get to the webserver seems to arrive unorder.
Here is an example of the log I get from the IHttpHandler after typing 'guidolin'
406302 2010-11-24 12:33:58,448 [8256] DEBUG Services.jQueryHandler - VALID jQueryHandler request data:guidoli RequestTime:24/11/2010 12:33:58(396)
406418 2010-11-24 12:33:58,564 [8256] DEBUG Services.jQueryHandler - VALID jQueryHandler request data:guidolin RequestTime:24/11/2010 12:33:58(507)
407751 2010-11-24 12:33:59,897 [8256] DEBUG Services.jQueryHandler - VALID jQueryHandler request data:gu RequestTime:24/11/2010 12:33:58(685)
408008 2010-11-24 12:34:00,154 [8256] DEBUG Services.jQueryHandler - VALID jQueryHandler request data:guid RequestTime:24/11/2010 12:34:00(56)
408167 2010-11-24 12:34:00,313 [8000] DEBUG Services.jQueryHandler - VALID jQueryHandler request data:guido RequestTime:24/11/2010 12:34:00(244)
408562 2010-11-24 12:34:00,708 [5912] DEBUG Services.jQueryHandler - VALID jQueryHandler request data:gui RequestTime:24/11/2010 12:34:00(368)
408832 2010-11-24 12:34:00,978 [8000] DEBUG Services.jQueryHandler - VALID jQueryHandler request data:guidol RequestTime:24/11/2010 12:34:00(946)
So obviously, the request doesn't arrive in the right order. Did any one already face this problem or does someone know a workaround about it ?
Here is the jQuery code for the autocomplete:
textBox.autocomplete({
source: textBox.attr("data-handler-url"),
select: function (event, ui) {
textBox.next("input[type='hidden']").val(ui.item.objectId);
textBox.data('selected-value', ui.item.value);
}
});