Onkeyup event slow in IE - autocomplete search attempt

Onkeyup event slow in IE - autocomplete search attempt

I have setup a keyup event on a textbox that clears a timer every keystroke, and uses the settimeout function to execute an ajax request.   Every browser works great except for IE8 and I am assuming 7.   Every key that you type lags in the textbox, but ajax request functions as expected.   How do I stop the lagging?  I could type 3 letters and they dont show up right away.  I appreciate any advice.

Below is a code example:

  1. //Keypress Function To Block Enter Key
  2. $("#textbox").keyup(function(event){
  3. currentFilter = $(this).val();
  4.  
  5. if (event.which == 13)
  6. {
  7. event.preventDefault();
  8. }
  9. else
  10. {
  11. //Clear Timer When Needed
  12.    clearTimeout(timer);
  13.  
  14.    timer = setTimeout(function(){
  15.    
  16.     searchServer(currentFilter)}, 1000);
  17.  
  18. }
  19. });

  20. function searchServer(currentFilter)
  21. {
  22. var urlString = currentServer + provisionerController + "?" + action + "=" + actionValue + "&" + partnerGroupAction + "=" + selectedAccountGroupText + "&" + filteredTextAction + "=" + currentFilter;
  23. var webSafeUrl = encodeURI(urlString);
  24. $.ajax({
  25.  url: webSafeUrl,
  26.  dataType: "html",
  27.  cache: false,
  28.  type: "POST",
  29.  beforeSend: function(){
  30.  loadingImage.show();
  31.  },
  32.  
  33.  complete: function(){
  34.  loadingImage.hide();
  35.  },
  36.  
  37.  success: function(data){
  38.  accountsTableDataContainer.html(data);
  39.  }
  40. });
  41. }