Answer the question
In order to leave comments, you need to log in
How to find a dynamic vote counter?
There is a poll, how to make the result of this poll visible immediately, without refreshing the page.
If a person clicked on the plus, the counter changed the value immediately, and it became immediately visible to everyone who had this page open, without refreshing the page and other clicks, something like a dynamic result.
Tell me in which direction to look, and on which it is easier to implement, show examples.
Answer the question
In order to leave comments, you need to log in
ajax js request that sends data to the server, the backend takes data from the database, increases / decreases the value by one and returns the result, the response handler displays this number without refreshing the page, but you still have to mess with the mechanism so that the user does not click the counter
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question