[jQuery] JQuery autocomplete got broke after i update it.

[jQuery] JQuery autocomplete got broke after i update it.


Hi All,
After I update JQuery autocomplete plugin (jQuery UI Autocomplete
@VERSION), I found one issue. The issue is as follows.
When I type "jua" in the autocomplete field. Four matches are returned
for users with the first name juan. Then add an "n".Only the first
match remains in the list.
I have come out from this issue by changing the parameter cacheLength:
0 in place of 1.
$field.autocomplete({
url:ac_url,
cacheLength:1,
For the autocompletion data, it reads from the configuration files.
Say in the files the data are in this way.
jflores:Juan Flores:jflores@gmail.com
jgomez:Juan Gomez:jgomez@gmail.com
jrafaela:Juan Carlos Rafaela:jrafaela@gmail.com
jromo:Juan Romo:jromo@gmail.com
juanw:Juan Wang:juanw@gmail.com
It works for previous issue, But creates another problem, If i change
cacheLength to 0 then if i add some new name in the configuration file
then it is not taking that updataed
data. If i change to 1 then after i type "juan" it displays the last
one. That is "juanw" and it not displays the other 4name.
I could not understand what is missing here. Please help me to resolve
this issue.
Please let me know if you need more info on this?
Thanks,