Technically, you don’t need to use a server-side language to support an Ajax application; you just need the response to be served from a server. So, you could instead use a library of static HTML or XML files on the server that are returned based on the Uniform Resource Identifier (URI) of the request. However, a server-side application processing a request and formulating a response is the common type of Ajax application, and the one I’ll be demonstrating in this chapter and the next.
Ajax is not as complicated as it may seem at first. A request needs to be sent ...