The ajaxSend() method is used to send an XMLHttpRequest to the server. It can be used in the following ways:
- To send data from the browser to the server
- To make an AJAX call using JavaScript
- To make an AJAX call using jQuery
The client side code for this function is as follows:
- var xhr = new XMLHttpRequest();
- xhr.open("POST", "http://www.example.com/my_ajax_call");
- xhr.send(data);
Share a personalized message with your friends.