Suppose that you want to design a new Ajax application, or update a legacy web application to include Ajax techniques. How do you go about it? First you need to decide what page events and user actions will be responsible for causing the sending of an asynchronous HTTP request. You may decide, for example, that [...]
Archive for the ‘Ajax’ Category
The Constituent Parts of Ajax
The XMLHTTPRequest Object When you click on a hyperlink or submit an HTML form, you send an HTTP request to the server, which responds by serving to you a new or revised page. For your web application to work asynchronously, however, you must have a means to send HTTP requests to the server without an [...]
Introducing Ajax
To improve the user’s experience, you need to add some extra capabilities to the traditional page-based interface design. You want your user’s page to be interactive, responding to the user’s actions with revised content, and be updated without any interruptions for page loads or screen refreshes. To achieve this, Ajax builds an extra layer of [...]
The Need for Ajax
In the following parts of the book, we shall discuss each of the core components in detail. Before discussing the individual components, though, let’s look in more detail at what we want from our Ajax application. Traditional Versus Ajax Client-Server Interactions
Anatomy of an Ajax Application
What You’ll Learn : The Need for Ajax Introducing Ajax The Constituent Parts of Ajax Putting It All Together Learn about the individual building blocks of Ajax and how they fit together to form the architecture of an Ajax application. Subsequent chapters will examine these components in more detail, finally assembling them into a working [...]
Introducing HTML
It wouldn’t be appropriate to try to give an exhaustive account of HTML (Hypertext Markup Language)—or, indeed, any of the other component technologies of Ajax—within this book. Instead we’ll review the fundamental principles and give some code examples to illustrate them, paying particular attention to the subjects that will become relevant when we start to [...]
Writing and Styling Pages in HTML and CSS
What You’ll Learn: Introducing HTML Elements of an HTML Page A More Advanced HTML Page Some Useful HTML Tags Adding Your Own Style Defining the Rules Add a Little class Applying Styles Formatting Text with Styles Adding Lines In this chapter we introduce HTML, the markup language behind virtually every page of the World Wide [...]
HTML Forms
Web pages often contain fields where you can enter information. Examples include select boxes, check boxes, and fields where you can type information. Table 1.2 lists some popular HTML form tags.
HTTP Response
In answer to such a request, the server typically issues an HTTP response, the first line of which is often referred to as the status line. In that line the server echoes the HTTP version and gives a response status code (which is a three-digit integer) and a short message known as a reason phrase. [...]
The HTTP Request
After opening a connection to the intended server, the HTTP client transmits a request in the following format: An opening line Optionally, a number of header lines A blank line Optionally, a message body The opening line is generally split into three parts; the name of the method, the path to the required server resource, [...]


Posted in
Tags:






