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>
<input type=”radio” name=”size”
value=”medium”>Medium</input>
<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 ...