Ajax


#1

I was trying to figure how to automatically update my website without reloading the page, I found out about AJAX but couldn’t find a good tutorial, is this current? And if it is anyone willing to show me how to use it?


#2

I would use fetch over ajax:

https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch

some people recommend axios.js because of some shortcomings of fetch, i haven’t read too much about it, so if you think fetch won’t cut it, read about axios

furthermore, if you want to have constant communication between client and server (chat application for example), go for websocket.


#3

Thank you, that was exactly was I was looking for,.