EasyUI Forum
April 30, 2024, 10:08:03 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: eayui combobox autocomplete queryparams  (Read 4490 times)
markalves
Newbie
*
Posts: 15


View Profile
« 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'"/>
Logged
fgendorf
Newbie
*
Posts: 24


View Profile Email
« Reply #1 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.
Logged
markalves
Newbie
*
Posts: 15


View Profile
« Reply #2 on: November 18, 2019, 08:54:00 AM »

Thank you very much for the help, it works !!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!