EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: markalves on November 13, 2019, 07:09:31 AM



Title: eayui combobox autocomplete queryparams
Post by: markalves on November 13, 2019, 07:09:31 AM
Hi,
I'm tryiing to use combobox getting data from ajax, but I would like it works as jquery ui autocomplete, when I digits characters I'd like it suggests all words starting this these characters.
How I can post to php script characters I'm writing ?
This is the code:
<input type="text" id="nascita_luogo" placeholder="Luogo di Nascita" class="easyui-combobox" data-options="valueField:'id',textField:'comune',url:'ajax/cercacomune.php'"/>


Title: Re: eayui combobox autocomplete queryparams
Post by: fgendorf on November 14, 2019, 11:55:49 AM
Hi, try use the mode "remote"

Quote
mode   string   Defines how to load list data when text changed. Set to 'remote' if the combobox loads from server. When set to 'remote' mode, what the user types will be sent as the http request parameter named 'q' to server to retrieve the new data.


Title: Re: eayui combobox autocomplete queryparams
Post by: markalves on November 18, 2019, 08:54:00 AM
Thank you very much for the help, it works !!