Getting started with Learning AJAX


Contents:


What is AJAX?
AJAX (Asynchronous JavaScript and XML) is a way to send data to th...
One simple example
In order to show that AJAX is not difficult, let's give a simple example. What we need: jQu...
XMLHttpRequest class
In the following lessons, we'll look at the implementation of asynchronous JavaScript requests.
XMLHttpRequest: Sending a request
Consider using a class XMLHttpRequest. In order to determine the HTTP request paramete...
XMLHttpRequest: handling response
In this lesson, we will learn how to receive a response from a query XMLHttpRequest. F...
XMLHttpRequest: JSON processing in response body
Now, try to pass the string as the response body of the JSON server. For this we need the PHP functi...
Extracting data from the database
To get data from the database, create a new table tbl_message and write one line into ...
Writing to a text file
In this lesson, we will learn how to send asynchronous POST requests. In particular, we will learn h...
AJAX contact form (JS)
In this lesson we will send the contact form data using AJAX technology, write them into the databas...
jQuery AJAX methods: $ .ajax (), $ .get (), $ .post ()
Consider the implementation of AJAX queries using jQuery. There are three functions for working with...
Handling the jQuery Response
In this lesson we will learn how to accept the server's response body. We start with the function
AJAX contact form (jQuery)
In this lesson, we'll look at an example of sending AJAX form data using jQuery (similar to how it w...