Good day, using JSP and jQuery UI I have successfuly implemented autocompletion for a text input. Autocomplete data are retrieved from a database and filtered by 'q' parameter on the server side. It returns all items containing queried string:
SELECT name FROM organization WHERE name LIKE '%q%';
Is there a way how to do the same with Dojo? I followed this Dojo tutorial , but when I type for example letter a
into the text input the text in the text input get's replaced by first suggestion Ibam
and my first letter a
is replaced with I
from word Ibam
. It works strange. Please advise.
Vojtech
I would recommend dijit/form/ComboBox
with dojo/store/JsonRest
.
See it in action: http://jsfiddle.net/phusick/N8DqG/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With