Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#8123 closed feature (fixed)

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.

Change History (3)

comment:1 Changed 4 years ago by scottgonzalez

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

Updated. Thanks.

comment:2 Changed 4 years ago by scottgonzalez

  • Type changed from bug to feature

comment:3 Changed 4 years ago by tjcrowder

You guys rock. :-)

Note: See TracTickets for help on using tickets.