AJAX methods
The open() method
The open() method is used to get the server side script that will be used in an AJAX application.
This method takes three parameters:
Method
Specifies the method by which to get the script. Can take the value of "GET" or "POST"
URL
The URL of the script
Asynchronous
Takes the value of "true" or "false" specifying if the request should be handled asynchronously
Syntax:
ajaxObject.open(Method, URL, Asynchronous);
Example:
ajaxObject.open("POST", "page1.php", true);
The send() method
The send() method sends the actual request to the server. It should contain the value "null"
Example:
ajaxObject.send(null);




