Share E-Book
Scan to open this page

Scan with your phone to open this page

Author: Dave Thau!

The Book of JavaScript teaches readers how to add interactivity, animation, and other tricks to their web sites with JavaScript. Rather than provide a series of cut-and-paste scripts, thau! takes the reader through a series of real world JavaScript code with an emphasis on understanding. Each chapter focuses on a few important JavaScript features, shows how professional web sites incorporate them, and takes readers through examples of how they might add those features to their own web sites. This thoroughly updated 2nd edition includes new chapters on Ajax, revised appendices, and new examples throughout. Summary sections and assignments close each chapter, making the book perfect for use in college courses or independent study. CD includes code and images for every example, answers to assignments, script libraries for hard-to-program applications, and many useful software programs.

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

AI guide
【One-Line Pitch】 A patient, example-driven introduction to JavaScript for building genuinely interactive web pages, written for beginners who want to understand their code rather than paste it. Best for students, self-taught web builders, and anyone who wants a pre-framework grounding in the language and the browser. 【Book Arc】 - **Opening (~0%–10%)**: Frames the book's philosophy — learn by understanding real scripts, not copying them — and surveys what JavaScript can and cannot do, its alternatives (CGI, VBScript, Java, Flash), and where scripts live on a page. - **Early (~10%–32%)**: Core language fundamentals in context: variables and built-in functions, browser detection with if-then logic and Boolean expressions, rollovers and image swapping, the document object, windows, and writing your own functions with parameters and return values. - **Middle (~32%–48%)**: Working with user input and dynamic content — forms (text fields, buttons, checkboxes, radio buttons, selects, textareas), arrays and loops, timing events with setTimeout/clearTimeout, and building clocks and slide shows. - **Late (~48%–65%)**: More advanced browser work: frames, frame busting, image maps, form validation, string manipulation, and interacting with server-side programs. - **Ending (~65%–100%)**: The modern layer — XML in JavaScript and Ajax, server-side Ajax, a full shared To Do List application that ties the techniques together, and a dedicated chapter on debugging JavaScript and Ajax. 【Key Takeaways】 - **Understanding beats copy-paste** (Opening): the book's central method is walking through real-world scripts line by line so readers can adapt techniques to their own sites, not just reproduce them. - **JavaScript's limits are part of the lesson** (Early): it can't talk to servers directly, can't create graphics, and behaves differently across browsers — knowing this shapes realistic expectations and workarounds. - **Browser detection and conditional logic are foundational** (Early): if-then, if-then-else, nesting, and Boolean OR/AND are taught through the practical problem of serving different browsers. - **Events and the document object drive interactivity** (Early): rollovers, image swapping, and window manipulation introduce the event model and DOM-style property access. - **Functions are the reader's first real abstraction tool** (Early): parameters, return values, and proper variable declaration are covered with line-by-line analysis. - **Forms are the primary channel for user input** (Middle): reading and setting field values, naming elements correctly, and handling each control type are treated as essential skills. - **Arrays, loops, and timers enable dynamic behavior** (Middle): from checking all checkboxes to building clocks and countdowns, these tools turn static pages into responsive ones. - **Ajax and debugging close the loop** (Ending): the second edition adds XML/Ajax chapters, a capstone To Do List application, and explicit debugging guidance — the excerpts do not detail the specific debugging techniques. 【Reading Tips】 - Deep-read the line-by-line analyses in the early and middle chapters; they are where the book's "understand, don't copy" promise is actually delivered. - Skim the browser-detection material if you target modern browsers only, but still absorb the conditional-logic patterns — they recur throughout. - Treat the chapter-ending summaries and assignments as self-checks; the companion CD reportedly includes answers, making independent study viable. - Work through the capstone To Do List application in the Ajax section rather than reading it passively — it is designed to consolidate everything prior. - Keep the reference appendix on JavaScript objects and functions nearby as a lookup companion once you move past the guided chapters. 【Coverage Limits】 This guide is based on stratified excerpts covering the front matter, table of contents, and chapters through roughly the late-middle of the book; the Ajax, capstone application, and debugging chapters are visible only as titles, so their specific content is not summarized here.
Page 3
viewer: Luke Knowland Copyeditor: Publication Services, Inc. Compositors: Riley Hoffman and Megan Dunchak Proofreader: Stephanie Provines Indexer: Nancy Guen...
View in text
Page 8
............................................................ 16 Syntax of Variables ............................................................................
View in text
Page 6
94 Summary................................................................................................................ 96 Assignment........................
View in text
Page 12
............................................................ 161 Line-by-Line Analysis of Figure 9-11 ..........................................................
View in text
Page 14
mple of Ajax ............................................................................... 262 Introduction to Ajax ..........................................
View in text
Page 16
.......................................................................................... 327 callUpdateIfChanged() ...........................................
View in text
Page 6
............................. 408 PHP ........................................................................................................ 409 Java ........
View in text
Page 19
.................................................................................. 446 Textarea.................................................................
View in text
Tags
AI categories
JavaScriptWeb TechnologyProgramming
javascript
ISBN: 1593271069
Publisher: No Starch Press
Publish Year: 2006
Language: English
Pages: 519
File Format: PDF
File Size: 5.9 MB
Text Preview (First 20 pages)
Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Generating text preview…