3.16. What JavaScript do we still need to write?There's a lot of JavaScript that you'll need to write to make the coffee maker work like it's supposed to. Let's take a look at all the functions we've got to code, and review what we still need to do: JavaScript code You'll need some JavaScript, including:
<html> <head> <title>Break Neck Pizza Delivery</title> <link rel="stylesheet" type="text/css" href="breakneck.css" /> <script language="javascript" type="text/javascript"> var request = null; function createRequest() { try { request = new XMLHttpRequest(); } catch (trymicrosoft) { try { request = new ActiveXObject("Msxml2.XMLHTTP"); } catch (othermicrosoft) { You'll need some JavaScript, including: JavaScript code JavaScript orderCoffee() serveDrink() * Don't forget, we've still got to get a coffee-making script running on the server, too. We'll get to that in a little bit. |