From 303f20e1b3c977d75047bed1a3533a180d73fab5 Mon Sep 17 00:00:00 2001 From: Scott González Date: Mon, 10 Sep 2012 11:33:46 -0400 Subject: Demos: Cleanup. --- demos/autocomplete/categories.html | 15 +++++-------- demos/autocomplete/combobox.html | 11 ++-------- demos/autocomplete/custom-data.html | 19 ++++++---------- demos/autocomplete/default.html | 11 ++-------- demos/autocomplete/folding.html | 11 ++-------- demos/autocomplete/index.html | 36 +++++++++++++++---------------- demos/autocomplete/maxheight.html | 11 ++-------- demos/autocomplete/multiple-remote.html | 11 ++-------- demos/autocomplete/multiple.html | 11 ++-------- demos/autocomplete/remote-jsonp.html | 11 ++-------- demos/autocomplete/remote-with-cache.html | 11 ++-------- demos/autocomplete/remote.html | 11 ++-------- demos/autocomplete/xml.html | 11 ++-------- 13 files changed, 49 insertions(+), 131 deletions(-) (limited to 'demos/autocomplete') diff --git a/demos/autocomplete/categories.html b/demos/autocomplete/categories.html index 5d973a190..1138a16ef 100644 --- a/demos/autocomplete/categories.html +++ b/demos/autocomplete/categories.html @@ -1,4 +1,4 @@ - + @@ -29,7 +29,7 @@ ul.append( "
  • " + item.category + "
  • " ); currentCategory = item.category; } - that._renderItem( ul, item ); + that._renderItemData( ul, item ); }); } }); @@ -57,16 +57,11 @@ -
    - - -
    - - + +

    A categorized search result. Try typing "a" or "n".

    -
    - + diff --git a/demos/autocomplete/combobox.html b/demos/autocomplete/combobox.html index 40050c7b8..64d49bcc5 100644 --- a/demos/autocomplete/combobox.html +++ b/demos/autocomplete/combobox.html @@ -1,4 +1,4 @@ - + @@ -172,8 +172,6 @@ -
    -
    - -

    -
    - - +
    Select a project (type "j" for a start):
    + + + +

    You can use your own custom data formats and displays by simply overriding the default focus and select actions.

    Try typing "j" to get a list of projects or just press the down arrow.

    -
    - +
    diff --git a/demos/autocomplete/default.html b/demos/autocomplete/default.html index e9c38ff95..0f6744b33 100644 --- a/demos/autocomplete/default.html +++ b/demos/autocomplete/default.html @@ -1,4 +1,4 @@ - + @@ -44,22 +44,15 @@ - -
    -
    - - -

    The Autocomplete widgets provides suggestions while you type into the field. Here the suggestions are tags for programming languages, give "ja" (for Java or JavaScript) a try.

    The datasource is a simple JavaScript array, provided to the widget using the source-option.

    -
    - + diff --git a/demos/autocomplete/folding.html b/demos/autocomplete/folding.html index e2c8938a2..2e54ad672 100644 --- a/demos/autocomplete/folding.html +++ b/demos/autocomplete/folding.html @@ -1,4 +1,4 @@ - + @@ -41,8 +41,6 @@ -
    -
    @@ -50,14 +48,9 @@
    -
    - - -

    The autocomplete field uses a custom source option which will match results that have accented characters even when the text field doesn't contain accented characters. However if the you type in accented characters in the text field it is smart enough not to show results that aren't accented.

    Try typing "Jo" to see "John" and "Jörn", then type "Jö" to see only "Jörn".

    -
    - + diff --git a/demos/autocomplete/index.html b/demos/autocomplete/index.html index 77f801996..faa18d438 100644 --- a/demos/autocomplete/index.html +++ b/demos/autocomplete/index.html @@ -1,27 +1,25 @@ - + jQuery UI Autocomplete Demos - -
    -

    Examples

    - -
    + + + diff --git a/demos/autocomplete/maxheight.html b/demos/autocomplete/maxheight.html index bb27e2a0d..fbf886baa 100644 --- a/demos/autocomplete/maxheight.html +++ b/demos/autocomplete/maxheight.html @@ -1,4 +1,4 @@ - + @@ -59,20 +59,13 @@ -
    -
    -
    - - -

    When displaying a long list of options, you can simply set the max-height for the autocomplete menu to prevent the menu from growing too large. Try typing "a" or "s" above to get a long list of results that you can scroll through.

    -
    - + diff --git a/demos/autocomplete/multiple-remote.html b/demos/autocomplete/multiple-remote.html index d77315036..f33aba9a4 100644 --- a/demos/autocomplete/multiple-remote.html +++ b/demos/autocomplete/multiple-remote.html @@ -1,4 +1,4 @@ - + @@ -67,21 +67,14 @@ -
    -
    -
    - - -

    Usage: Enter at least two characters to get bird name suggestions. Select a value to continue adding more names.

    This is an example showing how to use the source-option along with some events to enable autocompleting multiple values into a single field.

    -
    - + diff --git a/demos/autocomplete/multiple.html b/demos/autocomplete/multiple.html index ff0aee0e8..54bc0eeec 100644 --- a/demos/autocomplete/multiple.html +++ b/demos/autocomplete/multiple.html @@ -1,4 +1,4 @@ - + @@ -80,21 +80,14 @@ -
    -
    -
    - - -

    Usage: Type something, eg. "j" to see suggestions for tagging with programming languages. Select a value, then continue typing to add more.

    This is an example showing how to use the source-option along with some events to enable autocompleting multiple values into a single field.

    -
    - + diff --git a/demos/autocomplete/remote-jsonp.html b/demos/autocomplete/remote-jsonp.html index 7a9fa486a..f1a079a55 100644 --- a/demos/autocomplete/remote-jsonp.html +++ b/demos/autocomplete/remote-jsonp.html @@ -1,4 +1,4 @@ - + @@ -63,8 +63,6 @@ -
    -
    @@ -76,14 +74,9 @@
    -
    - - -

    The Autocomplete widgets provides suggestions while you type into the field. Here the suggestions are cities, displayed when at least two characters are entered into the field.

    In this case, the datasource is the geonames.org webservice. While only the city name itself ends up in the input after selecting an element, more info is displayed in the suggestions to help find the right entry. That data is also available in callbacks, as illustrated by the Result area below the input.

    -
    - + diff --git a/demos/autocomplete/remote-with-cache.html b/demos/autocomplete/remote-with-cache.html index 79d4794ea..a2af90d67 100644 --- a/demos/autocomplete/remote-with-cache.html +++ b/demos/autocomplete/remote-with-cache.html @@ -1,4 +1,4 @@ - + @@ -42,21 +42,14 @@ -
    -
    -
    - - -

    The Autocomplete widgets provides suggestions while you type into the field. Here the suggestions are bird names, displayed when at least two characters are entered into the field.

    Similar to the remote datasource demo, though this adds some local caching to improve performance. The cache here saves just one query, and could be extended to cache multiple values, one for each term.

    -
    - + diff --git a/demos/autocomplete/remote.html b/demos/autocomplete/remote.html index 5086ad0b0..82bada235 100644 --- a/demos/autocomplete/remote.html +++ b/demos/autocomplete/remote.html @@ -1,4 +1,4 @@ - + @@ -37,8 +37,6 @@ -
    -
    @@ -49,14 +47,9 @@
    -
    - - -

    The Autocomplete widgets provides suggestions while you type into the field. Here the suggestions are bird names, displayed when at least two characters are entered into the field.

    The datasource is a server-side script which returns JSON data, specified via a simple URL for the source-option. In addition, the minLength-option is set to 2 to avoid queries that would return too many results and the select-event is used to display some feedback.

    -
    - + diff --git a/demos/autocomplete/xml.html b/demos/autocomplete/xml.html index 1fc0b8da3..61c5edb8d 100644 --- a/demos/autocomplete/xml.html +++ b/demos/autocomplete/xml.html @@ -1,4 +1,4 @@ - + @@ -48,8 +48,6 @@ -
    -
    @@ -60,14 +58,9 @@
    -
    - - -

    This demo shows how to retrieve some XML data, parse it using jQuery's methods, then provide it to the autocomplete as the datasource.

    This should also serve as a reference on how to parse a remote XML datasource - the parsing would just happen for each request within the source-callback.

    -
    - + -- cgit v1.2.3