+ 4
Dynamically adding contents to a page as social networks do
How can i dynamically add contents to a page? I'm new to PHP and i guess PHP can't do this as it finishes its work after page load. So what to do? heard about ajax and node.js. Any code snippets will be helpful...
1 Answer
+ 10
Great question. This might aide your efforts, and I hope it does. The simplest way of understanding "server-sent events":
https://www.w3schools.com/html/html5_serversentevents.asp