NicolasCARPi / jquery_jeditable

jQuery edit in place plugin. Extendable via plugin architecture. Plugins for plugin. Really.
https://jeditable.elabftw.net
MIT License
1.74k stars 459 forks source link

dynamic autocomplete with a huge list #196

Closed anonymous-explorer closed 5 years ago

anonymous-explorer commented 5 years ago

Description

I am trying to use jeditable as a table inplace editor and need to have a suggestions list to be updated dynamically as the user is typing (the same way as typeahead.js or "ajax live search" from ajaxlivesearch.com. My list is a huge, about 10K items in the form of ID and value pairs stored in the database, I need to choose ID while searching for value. This list is static. Could someone give a hint of how make it?

NicolasCARPi commented 5 years ago

You might want to use this: https://jqueryui.com/autocomplete/

Also, don't load the full 10k but wait at least 3 char typed to load only the matched ones.

Closing this issue as it's not pertinent to jquery-jeditable.