Skip to content

Commit 81d9d7b

Browse files
committed
Autocomplete: Better explanation of URLs for source option. Fixes jquery#58.
1 parent 21e4314 commit 81d9d7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entries/autocomplete.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
</desc>
6262
</type>
6363
<type name="String">
64-
<desc>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 <code>term</code> 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.</desc>
64+
<desc>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 a query string is added with a <code>term</code> field, which the server-side script should use for filtering the results. For example, if the <code>source</code> option is set to <code>"http://example.com"</code> and the user types <code>foo</code>, a GET request would be made to <code>http://example.com?term=foo</code>. The data itself can be in the same format as the local data described above.</desc>
6565
</type>
6666
<type name="Function">
6767
<argument name="request" type="Object"/>

0 commit comments

Comments
 (0)