Preparing and sending a web service request is probably one of the easiest aspects of Ajax. A few decisions about parameters, a couple of function calls, and you're done.
I'm assuming you've probably worked with web applications before and are familiar with the
POST HTTP requests.
XMLHttpRequest supports both of these, and a variety of other verbs. Many of those verbs don't make a lot of sense for Ajax applications, but there are four in particular that are well suited:
Used to retrieve information from the web server, parameters attached to the URL, and the URL exposed in the request.
Used to send information to the web server. Data is passed to the server via the
Used to send a request to delete a specific object. Data is passed to the server via the
Used to send an update to the web server. Data is passed to the server via the
The first two,