I am using jQuery.autocomplete (1.02) in my search box and I want an exact match of string and substring. I don’t care (yet!) About loading the database, I am glad that it launches a request for each keystroke and completely bypasses the caching - I just do not want something to be missed.
To this end, I tried to set cacheLength = 1, the minimum allowed, but the autocomplete function refuses to reset the GET request for each key up.
searchbox GET_request 'a' -> http://localhost/service_search_request?q=a 'ar' -> http://localhost/service_search_request?q=ar 'ars' -> http://localhost/service_search_request?q=ars
Instead, it sends the first and third and skips the second, giving me the wrong results for 'ar': - / I cleared my cache and sessions, but it looks like some kind of caching is going on. AFAIK I do not have a proxy, and I update every time. It appears that this behavior comes from jQuery.autocomplete.
So my questions are ...
A) Is it possible? that is, is it a function or maybe an error?
B) If so, is there a clean way? ...
C) If not, which auto-complete would you use instead?
Naturally, D) No, you are just misusing it in the spirit! there is always an opportunity, and indeed one that I would rather spend the time going along this path - provided that it comes with a link to documents that I could not find / read!
Greetings
Roger:)
source share