Skip to content

Commit ae88f5b

Browse files
authored
Typo - readme.md
1 parent aca7cb9 commit ae88f5b

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

readme.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@ The standard jquery.autocomplete.js file is around 13KB when minified.
2323
* `dataType`: type of data returned from server. Either `text` (default), `json` or `jsonp`, which will cause the autocomplete to use jsonp. You may return a json object in your callback when using jsonp.
2424
* `paramName`: Default `query`. The name of the request parameter that contains the query.
2525
* `params`: Additional parameters to pass with the request, optional.
26-
* `deferRequestBy`: Number of miliseconds to defer ajax request. Default: `0`.
26+
* `deferRequestBy`: Number of miliseconds to defer Ajax request. Default: `0`.
2727
* `ajaxSettings`: Any additional [Ajax Settings](http://api.jquery.com/jquery.ajax/#jQuery-ajax-settings) that configure the jQuery Ajax request.
2828

2929
###Configuration Settings
3030
* `noCache`: Boolean value indicating whether to cache suggestion results. Default `false`.
3131
* `delimiter`: String or RegExp, that splits input value and takes last part to as query for suggestions.
3232
Useful when for example you need to fill list of coma separated values.
33-
* `onSearchStart`: `function (query) {}` called before ajax request. `this` is bound to input element.
34-
* `onSearchComplete`: `function (query, suggestions) {}` called after ajax response is processed. `this` is bound to input element. `suggestions` is an array containing the results.
35-
* `onSearchError`: `function (query, jqXHR, textStatus, errorThrown) {}` called if ajax request fails. `this` is bound to input element.
33+
* `onSearchStart`: `function (query) {}` called before Ajax request. `this` is bound to input element.
34+
* `onSearchComplete`: `function (query, suggestions) {}` called after Ajax response is processed. `this` is bound to input element. `suggestions` is an array containing the results.
35+
* `onSearchError`: `function (query, jqXHR, textStatus, errorThrown) {}` called if Ajax request fails. `this` is bound to input element.
3636
* `transformResult`: `function(response, originalQuery) {}` called after the result of the query is ready. Converts the result into response.suggestions format.
3737
* `onSelect`: `function (suggestion) {}` Callback function invoked when user selects suggestion
3838
from the list. `this` inside callback refers to input HtmlElement.
@@ -42,7 +42,7 @@ The standard jquery.autocomplete.js file is around 13KB when minified.
4242
* `suggestion`: An object literal with the following format: `{ value: 'string', data: any }`.
4343
* `lookupFilter`: `function (suggestion, query, queryLowerCase) {}` filter function for local lookups. By default it does partial string match (case insensitive).
4444
* `triggerSelectOnValidInput`: Boolean value indicating if `select` should be triggered if it matches suggestion. Default `true`.
45-
* `preventBadQueries`: Boolean value indicating if it shoud prevent future ajax requests for queries with the same root if no results were returned. E.g. if `Jam` returns no suggestions, it will not fire for any future query that starts with `Jam`. Default `true`.
45+
* `preventBadQueries`: Boolean value indicating if it should prevent future Ajax requests for queries with the same root if no results were returned. E.g. if `Jam` returns no suggestions, it will not fire for any future query that starts with `Jam`. Default `true`.
4646
* `autoSelectFirst`: if set to `true`, first item will be selected when showing suggestions. Default value `false`.
4747
* `onHide`: `function (container) {}` called before container will be hidden
4848

@@ -54,7 +54,7 @@ The standard jquery.autocomplete.js file is around 13KB when minified.
5454
* `maxHeight`: Maximum height of the suggestions container in pixels. Default: `300`.
5555
* `width`: Suggestions container width in pixels, e.g.: 300. Default: `auto`, takes input field width.
5656
* `zIndex`: 'z-index' for suggestions container. Default: `9999`.
57-
* `appendTo`: container where suggestions will be appended. Default value `document.body`. Can be jQuery object, selector or html element. Make sure to set `position: absolute` or `position: relative` for that element.
57+
* `appendTo`: container where suggestions will be appended. Default value `document.body`. Can be jQuery object, selector or HTML element. Make sure to set `position: absolute` or `position: relative` for that element.
5858
* `forceFixPosition`: Default: `false`. Suggestions are automatically positioned when their container is appended to body (look at `appendTo` option), in other cases suggestions are rendered but no positioning is applied.
5959
Set this option to force auto positioning in other cases.
6060
* `orientation`: Default `bottom`. Vertical orientation of the displayed suggestions, available values are `auto`, `top`, `bottom`.
@@ -70,7 +70,7 @@ The standard jquery.autocomplete.js file is around 13KB when minified.
7070
Autocomplete instance has following methods:
7171

7272
* `setOptions(options)`: you may update any option at any time. Options are listed above.
73-
* `clear`: clears suggestion cache and current suggestions suggestions.
73+
* `clear`: clears suggestion cache and current suggestions.
7474
* `clearCache`: clears suggestion cache.
7575
* `disable`: deactivate autocomplete.
7676
* `enable`: activates autocomplete if it was deactivated before.
@@ -111,7 +111,7 @@ $('#autocomplete').autocomplete({
111111
});
112112
```
113113

114-
Local lookup (no ajax):
114+
Local lookup (no Ajax):
115115

116116
```javascript
117117
var countries = [
@@ -133,7 +133,7 @@ Custom lookup function:
133133

134134
$('#autocomplete').autocomplete({
135135
lookup: function (query, done) {
136-
// Do ajax call or lookup locally, when done,
136+
// Do Ajax call or lookup locally, when done,
137137
// call the callback and pass your results:
138138
var result = {
139139
suggestions: [
@@ -205,7 +205,7 @@ supply just a string array for suggestions:
205205

206206
## Non standard query/results
207207

208-
If your ajax service expects the query in a different format, and returns data in a different format than the standard response,
208+
If your Ajax service expects the query in a different format, and returns data in a different format than the standard response,
209209
you can supply the "paramName" and "transformResult" options:
210210

211211
```javascript

0 commit comments

Comments
 (0)