Ajax Send an XMLHttpRequest to a Server - phptpoint

Ajax Send an XMLHttpRequest to a Server

PHP Summer Training/Internship with 2 Live Projects in Noida Fee is only 5500/-Click here to Book Your Seat.

/ins>

AJAX – Send a Request To a Server

The XMLHttpRequest object is used to exchange data with a server.

Send a Request To a Server

To send a request to a server, we use the open() and send() methods of the XMLHttpRequest object

MethodDescription
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 Method)

Keep Updating yourself