Search and Top Navigation
#8123 closed feature (fixed)
Opened February 19, 2012 01:17PM UTC
Closed February 19, 2012 03:55PM UTC
Last modified February 19, 2012 03:59PM UTC
Autocomplete documentation should mention user-code filtering
Reported by: | tjcrowder | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.8.18 |
Component: | ui.autocomplete | Version: | 1.8.17 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
We see questions like this one periodically on Stack Overflow. It would help if this paragraph mentioned that the server-side script must do the filtering:
When a String is used, the Autocomplete plugin expects that string to point to a URL resource that will return JSON data. It can be on the same host or on a different one (must provide JSONP). The request parameter "term" gets added to that URL. The data itself can be in the same format as the local data described above.
E.g., perhaps (new/modified content in bold):
When a String is used, the Autocomplete plugin expects that string to point to a URL resource that will return JSON data. It can be on the same host or on a different one (must provide JSONP). The Autocomplete plugin does not filter the results; instead, the request parameter "term" gets added to the URL, which the server-side script should use for filtering the results. The data itself can be in the same format as the local data described above.
Updated. Thanks.