L
L
Levelse2018-02-22 17:21:13
JavaScript
Levelse, 2018-02-22 17:21:13

Create search simulation in HTML+JS?

Good afternoon, dear users. I am not familiar with JS, but I am sure that it is able to implement this solution.
The bottom line is, there is an index page on it, only a search string, + there are 30 more html pages. Is it possible to implement so that the user starts typing the name of one of the pages in the search bar, and when he clicks on the search, he goes to this page, the name of which he indicated. And it is desirable to do a search through ajax, so that when you enter the first letter, all pages appear where these letters are in the title. I know it's crooked, but I hope I explained it in a more understandable way.
I would really appreciate any answers. Thank you.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
Egor Zhivagin, 2018-02-22
@Krasnodar_etc

Is there a backend in the project?
Or do you know all the titles and links of the pages, and they will not be updated?
AJAX is a technology that sends requests to the backend. If there is no backend - no AJAX

A
Andrew, 2018-02-22
@KickeRockK

You can google
"ajax live search"

A
Alexander, 2018-02-22
@vetlugins

php + html + jQuery
1. On the server side (php) you write an array and a handler
2. Js. You catch the event in the input tag and send a request to the server
3. You display the received response.
It makes no sense to describe all the actions here ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question