did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

We're the #1 textbook rental company. Let us show you why.

9781934356678

Pragmatic Guide to JavaScript

by
  • ISBN13:

    9781934356678

  • ISBN10:

    1934356670

  • Format: Paperback
  • Copyright: 2010-12-10
  • Publisher: Oreilly & Associates Inc
  • Purchase Benefits
  • Free Shipping Icon Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • eCampus.com Logo Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $25.00
We're Sorry.
No Options Available at This Time.

Summary

The JavaScript ecosystem can be tough to hack through, even for experienced programmers. There are so many extensive JavaScript reference books and competing libraries to choose from-Prototype, jQuery, MooTools, YUI, Dojo, ExtJS, and so on. Christophe Porteneuve is here to help: he gives you fundamentals, the most handy techniques, and the insider's best practices. If you're reasonably comfortable programming in any widely known language, you'll be able to jump into JavaScript in no time. Divided into six Parts, the book starts with JavaScript code patterns that are too often ignored by JavaScript coders. Part 2 presents several essential JavaScript tasks-DOM and CSS manipulations, plus event handling and timers-in a framework-agnostic way, using syntax from all the major flavors. Parts 3 and 4, respectively, hit JavaScript's best features for user interface functionality-tooltips, lightboxes, image processing, infinite scrolling, and more-and forms for receiving and validating input. Part 5 explores the client/server relationship, touching on cookies, JSON, and Ajax (same- and cross-domain). Part 6 uses JavaScript in mashups with Twitter, Flickr, and geo-related APIs. The appendices feature Christophe's two-page JavaScript cheat sheet, followed by hard-won tips on debugging even the most maddening JavaScript errors. Next is an even-handed assessment of the major frameworks used in the book and in most JavaScript shops today. Last, Christophe presents an extensive group of resources for using and learning JavaScript and the major frameworks. This Pragmatic Guide is strictly focused on the techniques that will get you started in JavaScript. It's where you come to get the full scope of JavaScript in your head--fast! You'll quickly understand its core syntax, capabilities, and related frameworks. Start here first.

Author Biography

Christophe Porteneuve has been doing IT R&D for more than 10 years, specializing early in Web development. He joined Prototype Core in 2006, wrote Prototype and script.aculo.us in 2007, and sometimes speaks at conferences such as The Ajax Experience. He's the CTO of Ciblo.net in Paris, France, where he lives with his wife, Elodie.

Table of Contents

Dedicationp. xi
Acknowledgmentsp. xiii
Introductionp. xv
What's This Book About, and Who Is It For?p. xv
This Book and JavaScript Librariesp. xvi
This Book at a Glancep. xvii
How to Read This Bookp. xviii
Bread and Butter: Pure JavaScriptp. 1
Dynamically Selecting a Method/Propertyp. 4
Achieving Code Privacy with the Module Patternp. 6
Using Optional, Variable, and Named Argumentsp. 8
The DOM, Events, and Timersp. 11
Obtaining References to DOM Elementsp. 14
Dynamically Styling Contentp. 16
Changing an Element's Contentsp. 18
Running Code When the DOM Is Loadedp. 20
Listening for Events (and Stopping)p. 22
Leveraging Event Delegationp. 24
Decoupling Behaviors with Custom Eventsp. 26
Simulating Background Processingp. 28
UI Tricksp. 31
Pulling Off Classy Tooltipsp. 34
Making Unobtrusive Pop-Upsp. 36
Preloading Imagesp. 38
Creating a Lightbox Effectp. 40
Implementing an "Infinite Scroll"p. 42
Maintaining Viewport When Loading Contentp. 44
Form-fup. 47
Temporarily Disabling a Submit Buttonp. 50
Providing Input Length Feedbackp. 52
(Un)checking a Whole Set of Checkboxes at Oncep. 54
Validating Forms: The Basicsp. 56
Validating Forms: Going Furtherp. 58
Validating Forms: The Whole Nine Yardsp. 60
Providing On-the-Fly Help Tooltips on Formsp. 62
Autocompleting Input As It's Typedp. 64
Using Dynamic Multiple File Uploadsp. 66
Talking with the Server Sidep. 69
Reading/Writing Cookiesp. 72
Loading Stuff Through Ajax (Same Domain)p. 74
Using JSONp. 76
Using JSON-Pp. 78
Cross-Domain "Ajax" (Take 1)p. 80
Cross-Domain "Ajax" (Take 2)p. 82
Making Mashupsp. 85
Syndicating Your Twitter Updatesp. 88
Syndicating Your Flickr Updatesp. 90
Geocoding a Location and Getting Photos For Itp. 92
Appendicesp. 95
JavaScript Cheat Sheetp. 97
Debugging JavaScriptp. 101
Here Be Dragonsp. 101
Firefox and Firebugp. 102
Safari and Web Inspectorp. 106
IE6, IE7, the IE Toolbar, and Web Developer Expressp. 108
IE8 and Developer Toolsp. 111
Opera and Dragonflyp. 112
Virtual Machines Are Your Friendsp. 113
The Network May Be Your Enemyp. 114
JavaScript Frameworksp. 115
Prototype, script.aculo.us, and Scripty2p. 116
jQuery and jQuery UIp. 117
MooToolsp. 119
YUIp. 119
ExtJSp. 121
Dojop. 122
Getting Helpp. 125
Help on JavaScript in Generalp. 125
Help on Frameworksp. 127
Bibliographyp. 131
Indexp. 133
Table of Contents provided by Ingram. All Rights Reserved.

Supplemental Materials

What is included with this book?

The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.

The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.

Rewards Program