Hey, tried out AJAX today.
But I am having some issues.
By using oninput, HTTP requests are constantly being made, which is a waste.
By adding a delay, it doesn't look too good but reduces the amount of requests.
Keep in mind I am getting information from a database, so it has to create a connection all the time.
What would be the best approach? By just using a button with onclick?
Or is it normal to have many requests from a single session?
Let me know!