Random ordered query for jQuery autocomplete in C # IHttphandler

I have an autocomplete text box requesting an IHttphandler via IIS7 written in C #.

But the requests that get to the web server seem to come out of order.

Here is an example of the log I get from 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) 

Thus, it is obvious that the request does not arrive in the correct order. Has anyone already encountered this problem or did someone know of a workaround?

Here is the jQuery autocomplete code:

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);
  }
});
+5
source share
1 answer

HTTP, . HTTP ""; . , , - ; , . , , .

, , guidolin, gu?

, , . , "", , .

0

All Articles