Comments (1)
Hello, Alexandra!
I answered your question on SO, but will repeat it here for the sake of other people who may encounter the same issue and come here before SO.
In the case of using a url for the data, the script sends the request as whatever you set in the specified url, and adds q=[current input value]
at the end. In the case of initial load when you type in “a”, this is sent to your backend script: localhost/boo/?get_suggestions=1&q=a
. Thus, autocompelte.js expects this initial query to produce only items that match the query. After that initial request, the script will take on the filtering subsets internally, to decrease server load. This explains why “ac” returns only items that match your criteria. This is the autocomplete script doing its job of filtering what the server gave it.
If I’m interpreting your backend code correctly, it makes no use whatsoever of the q
parameter being sent in the request, so your code is returning every possible term. Autocomplete presumes this is the result of a proper search and shows you all of it, waiting for more characters to be typed in for it to filter the list further.
The point being that you need to make your backend script filter the list of terms to whatever matches the q
parameter before returning it to the autocomplete script.
Let me know if I can be of further assistance!
from jqueryautocompleteplugin.
Related Issues (20)
- local+remote source HOT 2
- Keep version in header the same as the actual release HOT 1
- Default options class HOT 1
- Missing indicator.gif HOT 1
- Default value of multiple Separator option HOT 1
- result div not correct width when input has padding. HOT 6
- Not detecting international accents HOT 1
- matchContains = "word" is not working with international codings
- How to deselect the item from list which already selected. HOT 1
- minchars and matchContains
- IE9 popup not showing up
- IE 9 probelm with click event in dropdown for multiselect HOT 1
- Odd with manually selecting item vs tab/enter select
- Submit on click HOT 2
- Sugguestion: $.ajax add type option
- No suggestion list on when type "DEL"
- onSelect or onClick HOT 2
- Function similar to jQuery UI AutoComplete "Select:" HOT 9
- JQMIGRATE: jQuery.fn.bind() is deprecated for jQuery v3
- matchSubset fails with formatItem, formatResult HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jqueryautocompleteplugin.