<!DOCTYPE html><HTML lang="en"> <head><meta charset="utf-8"> <title>Simply JavaScript (Yank (Kevin) & Adams (Cameron)) - Theo Todman's Book Collection (Book-Paper Abstracts)</title> <link href="../../../TheosStyle.css" rel="stylesheet" type="text/css"><link rel="shortcut icon" href="../../../TT_ICO.png" /> </head> <a name="Top"></a> <BODY> <div id="header"> <HR><H1>Theo Todman's Book Collection (Book-Paper Abstracts)</H1></div> <hr><CENTER><TABLE class = "Bridge" WIDTH=950><tr><td colspan =2><A HREF = "../BookSummary_5136.htm">Simply JavaScript</A></td></tr><tr><td colspan =2><A HREF = "../../../Authors/Y/Author_Yank (Kevin).htm">Yank (Kevin)</a> & <A HREF = "../../../Authors/A/Author_Adams (Cameron).htm">Adams (Cameron)</a></td></tr><tr><td colspan =2>This Page provides (where held) the <b>Abstract</b> of the above <b>Book</b> and those of all the <b>Papers</b> contained in it.</td></tr><tr><td><A HREF="#ColourConventions">Text Colour-Conventions</a></td><td><A HREF = "../BookCitings_5136.htm">Books / Papers Citing this Book</A></td></tr></tr></TABLE></CENTER><hr> <P ALIGN = "Justify"><FONT Size = 2 FACE="Arial"><FONT COLOR = "0000FF"><B>BOOK ABSTRACT: </B><BR><BR><U>Who Should Read This Book</U><FONT COLOR = "800080"><ol type="1"><li>Whether you ve never seen a line of JavaScript code in your life, or you ve seen one too many lines that doesn t do what you expect, this book will show you how to make JavaScript work for you. </li><li>We assume going in that you ve got a good handle on web design with HyperText Markup Language (HTML) and Cascading Style Sheets (CSS). You needn t be an expert in these languages, but as we ll see, JavaScript is just another piece in the puzzle. The better you understand basic web design techniques, the more you can enhance them with JavaScript.</li><li>If you need a refresher, we highly recommend <I>Build Your Own Web Site The Right Way Using HTML & CSS</I> (Melbourne: SitePoint, 2006 - <a name="W1734W"></a><A HREF = "https://www.sitepoint.com/premium/books/build-your-own-website-the-right-way-using-html-css-3rd-edition" TARGET = "_top">Link</A>). </li></ol></FONT><BR><U>Contents</U><FONT COLOR = "800080"><ol type="1">Preface  xv<li>The Three Layers of the Web  1</li><li>Programming with JavaScript  13</li><li>Document Access  61</li><li>Events  103</li><li>Animation  159</li><li>Form Enhancements  207</li><li>Errors and Debugging  269</li><li>Ajax  297</li><li>Looking Forward  335</li><li>Appendix A: The Core JavaScript Library  353<BR>Index  377</li></ol></FONT><FONT COLOR = "0000FF"><HR><B>BOOK COMMENT: </B><BR><BR>pdf file from SitePoint; See <a name="W1953W"></a><A HREF = "http://www.sitepoint.com/books/javascript1/" TARGET = "_top">Link</A> (Defunct) (now defunct). December 2009.</P> <P ALIGN = "Justify"><FONT Size = 2 FACE="Arial"><FONT COLOR = "0000FF"><HR><BR>"<B><A HREF = "../../../PaperSummaries/PaperSummary_18/PaperSummary_18425.htm">Yank (Kevin) & Adams (Cameron) - Simply JavaScript</A></B>"<BR><BR><B>Source</B>: Yank (Kevin) & Adams (Cameron) - Simply JavaScript<BR><FONT COLOR = "0000FF"><BR><BR><FONT COLOR = "800080"><U>Preface</U><ol type="1"><li>On the surface, JavaScript is a simple programming language that lets you make changes to your web pages on the fly, while they re being displayed in a web browser. How hard could that be to learn, right? It sounds like something you could knock over in an afternoon.</li><li>But JavaScript is bigger on the inside than it seems from the outside. If you were a Dr. Who fan, you might call it the TARDIS of programming languages. If you re not a Dr. Who fan, roll your eyes with me as the fanboys (and girls) geek out. Everyone back with me? Put your Daleks away, Jimmy.</li><li>As I was saying, JavaScript sounds like it should be simple. Nevertheless, throughout its ten year history (so far), the best ways of doing things with JavaScript have seemed to change with the seasons. And advice on how to write good JavaScript can be found everywhere:  Do it this way  it ll run faster!  Use this code  it ll run on more browsers!  Stay away from that feature  it causes memory leaks! </li><li>Too many other JavaScript books  some of them from very respected names in the industry  will teach you a handful of simple solutions to simple problems and then call it a day, leaving you with just enough rope with which to hang yourself when you actually try to solve a real-world problem on your own. And when in desperation you go looking on the Web for an example that does what you need it to, you ll likely be unable to make sense of the JavaScript code you find, because the book you bought didn t cover many of the truly useful features of the language, such as object literals, event listeners, or closures.</li><li>This book aims to be different. From the very first page, we ll show you the right way to use JavaScript. By working through fully fleshed-out examples that are ready to be plugged right into a professionally-designed web site, you ll gain the confidence not only to write JavaScript code of your own, but to understand code that was written by others, and even to spot harmful, old-fashioned code that s more trouble than it s worth!</li><li>Throughout this book, we ve tried to go the extra mile by giving you more than just the basics. In particular, we ve covered some of the new JavaScript-powered development techniques  like Ajax  that are changing the face of the Web. We ve also included sections that explore the new crop of JavaScript libraries like jQuery, Prototype, Yahoo! UI, and Dojo, making this the only beginner s JavaScript book to cover these powerful time-savers. & all of which made this book a lot harder to write, but that s why they pay us the big bucks. </li></ol></FONT><BR><FONT COLOR = "800080"><U>What s in This Book</U><ol type="1"><li><B>Chapter 1: The Three Layers of the Web</B><BR>A big part of learning JavaScript is learning when it s the right tool for the job, and when ordinary HTML and CSS can offer a better solution. Before we dive into learning JavaScript, we ll take a little time to review how to build web sites with HTML and CSS, and see just how JavaScript fits into the picture. </li><li><B>Chapter 2: Programming with JavaScript</B><BR>JavaScript is a programming language. To work with it, then, you must get your head around the way computer programs work  which to some extent means learning to think like a computer. The simple concepts introduced in this chapter  statements, variables, expressions, loops, functions, and objects  are the building blocks for every JavaScript program you ll ever write. </li><li><B>Chapter 3: Document Access</B><BR>While certain people enjoy writing JavaScript code for its own sake, you wouldn t want to run into them in a dark alley at night. As a well-adjusted web developer, you ll probably want to use JavaScript to make changes to the contents of your web pages using the Document Object Model (DOM). Lucky for you, we wrote a whole chapter to show you how! </li><li><B>Chapter 4: Events</B><BR>By far the most eventful portion of this book (ha ha ha& I slay me), this chapter shows you how to write JavaScript programs that will respond to the actions of your users as they interact with a web page. As you ll see, this can be done in a number of ways, for which varying degrees of support are provided by current browsers. </li><li><B>Chapter 5: Animation+XX+</B><BR>Okay, okay. We can talk all day about the subtle usability enhancements that JavaScript makes possible, but we know you won t be satisfied until you can make things swoosh around the page. In this chapter, you ll get all the swooshing you can handle. </li><li><B>Chapter 6: Form Enhancements </B><BR>I know what you re thinking: forms are boring. Nobody leaps out of bed in the morning, cracks their knuckles, and shouts,  Today, I m going to fill in some forms! Well, once you trick out your forms with the enhancements in this chapter, they just might. Oh, and just to spice up this chapter a bit more, we ll show you how to make an element on your page draggable. </li><li><B>Chapter 7: Errors and Debugging </B><BR>When things go wrong in other programming languages, your computer will usually throw a steady stream of error messages at you until you fix the problem. With JavaScript, however, your computer just folds its arms and gives you a look that seems to say,  You were expecting, maybe, something to happen? No, English is not your computer s first language. What did you expect? It was made in Taiwan. In this chapter, we ll show you how to fix scripts that don t behave the way they should. </li><li><B>Chapter 8: Ajax</B> <BR>You might have heard about this thing called Ajax that makes web pages look like desktop applications, and shaky business ventures look like solid investments. We put it into this book for both those reasons. </li><li><B>Chapter 9: Looking Forward </B><BR>JavaScript doesn t just have a future; JavaScript is the future! Okay, you might think that s taking it a bit far, but when you read this chapter and see the many amazing things that JavaScript makes possible, you might reconsider. </li><li><B>Appendix A: The Core JavaScript Library </B><BR>As we progress through the book, we ll write code to solve many common problems. Rather than making you rewrite that code every time you need it, we ve collected it all into a JavaScript library that you can reuse in your own projects to save yourself a ton of typing. This appendix will provide a summary and breakdown of all the code that s collected in this library, with instructions on how to use it. </li></ol></FONT></P> <a name="ColourConventions"></a><hr><br><B><U>Text Colour Conventions</U> (see <A HREF="../../../Notes/Notes_10/Notes_1025.htm">disclaimer</a>)</B><OL TYPE="1"><LI><FONT COLOR = "0000FF">Blue</FONT>: Text by me; &copy; Theo Todman, 2018</li><LI><FONT COLOR = "800080">Mauve</FONT>: Text by correspondent(s) or other author(s); &copy; the author(s)</li></OL> </center> <BR><HR><BR><center> <TABLE class = "Bridge" WIDTH=950> <TR><TD WIDTH="30%">&copy; Theo Todman, June 2007 - August 2018.</TD> <TD WIDTH="40%">Please address any comments on this page to <A HREF="mailto:theo@theotodman.com">theo@theotodman.com</A>.</TD> <TD WIDTH="30%">File output: <time datetime="2018-08-02T04:41" pubdate>02/08/2018 04:41:07</time> <br><A HREF="../../../Notes/Notes_10/Notes_1010.htm">Website Maintenance Dashboard</A> </TD></TR><TD WIDTH="30%"><A HREF="#Top">Return to Top of this Page</A></TD> <TD WIDTH="40%"><A HREF="../../../Notes/Notes_11/Notes_1140.htm">Return to Theo Todman's Philosophy Page</A></TD> <TD WIDTH="30%"><A HREF="../../../index.htm">Return to Theo Todman's Home Page</A></TD> </TR></TABLE></CENTER><HR> </BODY> </HTML>