Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Demos: fixed broken link to remote autocomplete demo. fixes #5744
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspermdegroot committed Mar 11, 2013
1 parent 276696d commit fb4a223
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion demos/widgets/autocomplete/autocomplete-remote.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
<p class="jqm-intro">To use the listview filter as an autocomplete that taps into remote data sources, you can use the <code>listviewbeforefilter</code> event to dynamically populate a listview as a user types a search query.</p>

<p>This is useful when you have a very large data set like cities, zip codes, or products that can't be loaded up-front locally. Use the view source button to see the JavaScript that powers this demo.</p>
<p>If you have a small list of items, you can use the listview <a href="../listviews/">filter reveal option</a> to make an autocomplete with local listview data.</p>
<p>If you have a small list of items, you can use the <a href="../listviews/">listview</a> filter reveal option to make an autocomplete with local listview data.</p>

<div data-demo-html="true" data-demo-js="true" data-demo-css="true">
<h3>Cities worldwide</h3>
Expand Down
4 changes: 2 additions & 2 deletions demos/widgets/autocomplete/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@

<h2>Remote data</h2>

<p>To use the listview filter as an autocomplete that taps into remote data sources, you can use the <code>listviewbeforefilter</code> event to dynamically populate a listview as a user types a search query. <a href="autocomplete-remote.php" data-ajax="false">Remote autocomplete demo</a></p>
<p>To use the listview filter as an autocomplete that taps into remote data sources, you can use the <code>listviewbeforefilter</code> event to dynamically populate a listview as a user types a search query: <a href="autocomplete-remote.php" data-ajax="false">Remote autocomplete demo</a></p>

<h2 id="autocomplete-local">Local data</h2>

<p>The filter reveal feature makes is easy to build a simple autocomplete with local data. When a filterable list has the <code>data-filter-reveal="true"</code>, it will auto-hide all the list items when the search field is blank. The <code>data-filter-placeholder</code> attribute can be added to specify the placeholder text for the filter.</p>
<p>The filter reveal feature makes it easy to build a simple autocomplete with local data. When a filterable list has the <code>data-filter-reveal="true"</code>, it will auto-hide all the list items when the search field is blank. The <code>data-filter-placeholder</code> attribute can be added to specify the placeholder text for the filter.</p>
<p>Any listview filter with more than 100-200 items may be slow to perform on a mobile device so we recommend using this feature for autocomplete situations with a relatively small number of items.</p>

<h4>Full width listview (non-inset)</h4>
Expand Down
2 changes: 1 addition & 1 deletion demos/widgets/listviews/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
</div><!--/demo-html -->

<h2 id="list-reveal">Filter reveal</h2>
<p>The filter reveal feature makes is easy to build a simple autocomplete with local data. When a filterable list has the <code>data-filter-reveal="true"</code> attribute, it will auto-hide all the list items when the search field is blank. The <code>data-filter-placeholder</code> attribute can be added to specify the placeholder text for the filter. If you need to search against a long list of values, we provide a way to create a filter with a <a href="listview-filter-autocomplete.php" data-ajax="false">remote data source</a>.</p>
<p>The filter reveal feature makes it easy to build a simple autocomplete with local data. When a filterable list has the <code>data-filter-reveal="true"</code> attribute, it will auto-hide all the list items when the search field is blank. The <code>data-filter-placeholder</code> attribute can be added to specify the placeholder text for the filter. If you need to search against a long list of values, we provide a way to create a filter with a <a href="../autocomplete/autocomplete-remote.php" data-ajax="false">remote data source</a>.</p>
<div data-demo-html="true">
<ul data-role="listview" data-filter="true" data-filter-reveal="true" data-filter-placeholder="Search fruits..." data-inset="true">
<li><a href="#">Apple</a></li>
Expand Down

0 comments on commit fb4a223

Please sign in to comment.