We ask in search to the user by means of OpenSearch
There is one detail in the picture that not everyone notices. Backlight arrow dropdown menu. So the site you are on offers the addition of a search plugin. It works in Firefox and IE.
This is done by connecting via an XML file of the OpenSearch format . The simplest option for Habr will be:
Хабрахабр
habrahabr.ru/favicon.ico
utf-8
This construction tag is connected:
Voila! Now you can add Habr to your list of search engines. An important feature ( update from PM ) is that the arrow goes out after adding the plugin, the title attribute of the tag and the tag
It is also easy to make auto-completion of the request (not for Habr, since you need to issue assumptions in a different format than they are given at habrahabr.ru/ajax/suggest ). Add a line of the form to the end:
And at /suggestion.php we give the assumptions in the following format (simplified version):
["то, что уже ввел юзер", ["предположение №1", "предположение №2", "предположение №3"]]
This is how it works on one of the sponsored sites. Those who wish can screw this up by reading the link to opensearch.org
P.S. Habra citizens - use OpenSearch! For this, you will be grateful from the users and an extra argument in the struggle for the visitors bookmark.