Ajax Tutorial
Aajx - Send a Request To Server
To send a request to a server, we use the open() and send() methods of the XMLHttpRequest object: 

GET or POST Method

GET is simpler and faster than POST, so mostly use a GET.
Sending a large amount of data to the server (POST has no size limitations).
POST request use to send the data to send to the server.

Method Description
open(method, url, async) Specifies the type of request

method: the type of request: GET or POST
url: the server (file) location
async: true (asynchronous) or false (synchronous)
send() Sends the request to the server (used for GET)
send(string) Sends the request to the server (used for POST)
Ajax GET() Request
Syntax :
xhttp.open("GET", "url", true);
xhttp.send();
Send a Request to Server using Ajax :
xhttp.open("GET", "ajax-tutorial.php", true);
xhttp.send();
Ajax POST() Request
Syntax :
xhttp.open("POST", "url", true);
xhttp.send(string);
Send a Request to Server using Ajax :
xhttp.open("POST", "ajax-tutorial.asp", true);
xhttp.send("TutorialName");

We see you’re using an ad blocker.

Our website is made possible by displaying ads to our visitors.

Please help us continue to provide you with free. So please disabling your ad blocker.