How to change the content of a webpage dynamically | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How to change the content of a webpage dynamically

for example in facebook when i logij with my account my profile pic my name etc are displayed. is there any language used separately other than javascript and php i know that php is used to retrieve data from data base and java script is used to change the content dynamically how php and javascript work together to change the content based on the login credentials... Thanks in advance ☺

22nd Oct 2017, 1:11 PM
Naveen Kumar
Naveen Kumar - avatar
3 Answers
+ 3
Ajax! It stands for asynchronous Javascript and XML. It can retrieve content from database without refreshing the page. It is one of the reason jquery is great as it make ajax requests much easier!
22nd Oct 2017, 1:20 PM
Drax
Drax - avatar
+ 3
Here a simple example how Javascript change PHP page data https://code.sololearn.com/w8vygVE7LK2Q/?ref=app
22nd Oct 2017, 1:30 PM
Calviղ
Calviղ - avatar
+ 2
thank you dude
22nd Oct 2017, 1:22 PM
Naveen Kumar
Naveen Kumar - avatar