+ 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...

9th Mar 2017, 3:25 PM
Chahat Gupta
Chahat Gupta - avatar
1 Odpowiedź
+ 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
9th Mar 2017, 4:22 PM
Mark Foxx
Mark Foxx - avatar