Day 75 JavaScript AJAX

Asynchronous JavaScript and XML(AJAX) is a technique created using different technologies like JavaScript, CSS, HTML, and XML but is not a programming language itself. AJAXs purpose is to allow web pages to update live behind the scenes without refreshing the page.

This is a very powerful ability that all of our favorite social media sites use. When Instagram, Twitter, or Facebook timeline updates live just remember that is AJAX at work.

AJAX is essentially a JavaScript object with methods and functions attached to it. AJAX isn’t really the object but XMLHttpRequest is which came before AJAX.

Some common methods and functions of XMLHttpRequest are open(), send(), & readyState. Open() specifies the request whether it’s a method, url, async, user, and psw. Send() sends the request to the server used for GET requests and send(string) is used for the POST requests. GET is simpler and faster than POST. However POST requests have no size limit and are more secure.

It is exciting to see how everything is correlating together and making sense of how websites function nowadays especially social media sites.

One thought on “Day 75 JavaScript AJAX

Add yours

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Up ↑

%d bloggers like this: