Opened 11 years ago

Closed 11 years ago

Last modified 11 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 11 years ago by Scott González

Milestone: 1.91.8.18
Resolution: fixed
Status: newclosed

Updated. Thanks.

comment:2 Changed 11 years ago by Scott González

Type: bugfeature

comment:3 Changed 11 years ago by tjcrowder

You guys rock. :-)

Note: See TracTickets for help on using tickets.