Ticket #8123 (closed feature: fixed)

Opened 3 years ago

Last modified 3 years ago

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:
Blocking: Blocked by:

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.

Change History

comment:1 Changed 3 years ago by scott.gonzalez

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone changed from 1.9 to 1.8.18

Updated. Thanks.

comment:2 Changed 3 years ago by scott.gonzalez

  • Type changed from bug to feature

comment:3 Changed 3 years ago by tjcrowder

You guys rock. :-)

Note: See TracTickets for help on using tickets.