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.
Start your free trial

You might also like

What Employees Want Most in Uncertain Times

What Employees Want Most in Uncertain Times

Kristine W. Powers, Jessica B.B. Diaz
What Successful Project Managers Do

What Successful Project Managers Do

W. Scott Cameron, Jeffrey S. Russell, Edward J. Hoffman, Alexander Laufer
How to Become a Game-Changing Leader

How to Become a Game-Changing Leader

Douglas A. Ready, Alan Mulally

Publisher Resources

ISBN: 0596102259Errata PageSupplemental Content