What is use of ajax and how to write ajax code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

What is use of ajax and how to write ajax code?


29th Mar 2019, 3:44 PM
Pushpendra Mangroliya
Pushpendra Mangroliya - avatar
4 Answers
+ 7
//Ajax is used to send and retrieve data from a server asynchronously (in the background) without interfering with the display and behavior of the existing page in web application
29th Mar 2019, 3:52 PM
Sudarshan Rai
Sudarshan Rai - avatar
+ 2
Ajax is a JavaScript library that is used for asynchronous data flow from server to client side. The only thing you need to do is import the JavaScript file of ajax and write your code after that tag. It will help you fetch and save data into database without reloading the page.
30th Mar 2019, 5:49 AM
Johnnie 🎩
Johnnie 🎩 - avatar
+ 1
ajax can be used to deal with data real time without page refresh. Ajax is mostly used with jQuery. Typical ajax code structure will be like this.. https://code.sololearn.com/WLmLwPTm6n4B/?ref=app
30th Mar 2019, 7:42 PM
Salitha Chathuranga
Salitha Chathuranga - avatar
the feeling
30th Mar 2019, 8:26 PM
Jaedon Person
Jaedon Person - avatar