Today I set myself the task of writing jQuery chat in less than half an hour. In the end, it took me 40 minutes.
However, I want to improve it, so downloading on the server and in the browser is not terrifying.
Currently, the user enters a text field, presses enter, this data is sent to the .php file, which updates the mySQL table and displays all the rows in the table.
There is a set interval on the div every two seconds to update if someone said something without pressing the enter button.
I just wanted to know thoughts on how to do it better, or the most effective way. I want to understand the best technologies to use and why.
Thanks for all your input, I love stack overflows, this is invaluable to me.
source
share