live search while typing the query on the page


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
4 views
You need to implement on page search tags when you set the type habarovskogo or Gorlovskogo: starting to dial after 2-3 symbol throws out a list of suitable options. It can run the cursor with the keyboard or clicking. The tags are inserted through the separator (a comma).

On the page decided to use mootools. He has already written 3 lines in js (this is my first code in js in my life).
Appropriate option when the list of tags is loaded when the page loads (when it is small) and when the set takes a json request to the server. In most of mootools ready-made solution no. What will advise? Don't want to reinvent the wheel. Yes and long it. At least, as this functionality is properly called?
by | 4 views

6 Answers

0 like 0 dislike
is the function autocomplete
by
0 like 0 dislike
by
0 like 0 dislike
To mootools use davidwalsh.name/mootools-jquery-textbox-list. It is of course not quite autocomputed in the classic sense, but with minimal work napilnikom into it
by
0 like 0 dislike
Recently slipped type "startup" habrahabr.ru/blogs/startup/110509/
It may be useful for you, since you speak for the first time with JS.
by
0 like 0 dislike
Out of the box Drupal is jQuery plugin to autocomplete, I think you should get acquainted with it.
by
0 like 0 dislike
Out of the box jQuery UI is is such a wonderful thing: jqueryui.com/demos/autocomplete/#remote-with-cache
Auto-completion with a predefined list with JSON uploading, caching, example of tags separated by commas. I have enough. Only negative — it's not mootols =)
by

Related questions

0 like 0 dislike
1 answer
asked May 10, 2019 by Energy2
0 like 0 dislike
3 answers
0 like 0 dislike
2 answers
asked Apr 12, 2019 by Alexis_D
0 like 0 dislike
1 answer
asked May 21, 2019 by magic_healthy_hair
0 like 0 dislike
3 answers
asked Apr 25, 2019 by vlad_lutsky
110,608 questions
257,186 answers
0 comments
27,899 users