Skip to Content
Head Rush Ajax
book

Head Rush Ajax

by Brett McLaughlin
March 2006
Beginner to intermediate
448 pages
13h 33m
English
O'Reilly Media, Inc.
Content preview from Head Rush Ajax
152
Chapter 3
The coffee maker HTML
Enough coffee talk; it’s time to build the asynchronous coffee
maker application. First, let’s take a look at the HTML for the
coffee maker application, in coffee.html. We’ve gone ahead
and written the HTML for placing and order and the rst
coffee maker (you’re going to do the second coffee maker later).
Let’s see what you’ve got to work with:
<html>
<head>
<title>Ajax-powered Coffee Maker</title>
<link rel=”stylesheet” type=”text/css” href=”coffee.css” />
</head>
<body>
<div id=”header”>
<h1>Ajax powered Coffee Maker</h1>
</div>
<div id=”wrapper”>
<div id=”coffeemaker1”>
<h2>Coffee Maker #1</h2>
<p><img src=”images/CoffeeMaker1.gif”
alt=”Coffee Maker #1” /></p>
<div id=”coffeemaker1-status”>Idle</div>
</div>
<div id=”coffeeorder”>
<p><img src=”images/coffeeMugWithBeans.jpg” alt=”Coffee Pot 1” /></p>
<h2>Place your coffee order here:</h2>
<div id=”controls1”>
<form>
<p>Name: <input type=”text” name=”name” id=”name” /></p>
<h3>Size</h3>
<p>
<input type=”radio” name=”size”
value=”small” checked=”true”>Small</input>
&nbsp;&nbsp;
<input type=”radio” name=”size”
value=”medium”>Medium</input>
&nbsp;&nbsp;
<input type=”radio” name=”size”
value=”large”>Large</input>
</p>
All this is standard stuff. We’ve
linked to an external style sheet
and included a title with the
name of the application.
Here’s the HTML for the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

What Successful Project Managers Do

What Successful Project Managers Do

W. Scott Cameron, Jeffrey S. Russell, Edward J. Hoffman, Alexander Laufer
Strange Code

Strange Code

Ronald T. Kneusel
How to Overcome a Power Deficit

How to Overcome a Power Deficit

Cyril Bouquet, Jean-Louis Barsoux

Publisher Resources

ISBN: 0596102259Errata Page