small medium large xlarge

Errata for Prototype and script.aculo.us

 

The latest version of the book is P2.0, released over 6 years ago. If you've bought a PDF of the book and would like to upgrade it to this version (for free), visit your home page.

By default this page displays the errata for the latest version of the book. If you have a previous version, select it here:

If you've found a new error, please submit it.

  • Typo
  • Tech. error
  • Suggestion
  • Maybe next edition
  • Not a problem
  • Reported in: P1.0 (22-May-08)
#32136
Paper page: 19-20

HTML on page 19 contains one table, but all subsequent figures 2.2 and 2.3 display two tables.
--john draughn

  • Reported in: P1.0 (14-Mar-09)
#38344
PDF page: 27
The english is a bit jolty generally in this book. In particular, this paragraph: Perhaps you come from a programming background with languages ...more...
  • Reported in: P1.0 (14-Mar-09)
#38345
PDF page: 28

This is not what fastidious means.--Julian Leviston

  • Reported in: P1.0 (18-Sep-08)
#34541
PDF page: 28

Grammar: in the second paragraph, "shortly in a moment" is redundant.--James Paddock

  • Reported in: P2.0 (26-Sep-10)
#45154
PDF page: 30
result += (this.country || "); should be result +=(this.country || ""); Without the terminating quotation mark, gives an error noting such in Firefox'...more...
  • Reported in: RC1.0 (02-Jun-08)
#32248
Paper page: 33
In the syntax block that shows the definition for multiple elements, what is shown is $(ID|element...) -> [ extendedElement, ...] But I think i...more...
  • Reported in: B0 (14-Jan-11)
#46236
Paper page: 42
Book version May 2008 - version # 2008-5-5 "for (var index = 0, len = array.length; index < l; ++index) // your code using index here." ...more...
  • Reported in: P1.0 (12-Apr-09)
#38847
PDF page: 53
This is actually in the "P2.0 printing, May 2008" version of the book, but that's not listed in your dropdown on the add erratum page. Anyway: The...more...
  • Reported in: P2.0 (06-May-10)
#43111
PDF page: 66

The second method

should be

The fifth method--Martijn Bak

  • Reported in: P2.0 (06-May-10)
#43112
PDF page: 67

The fourth addition

should be the seventh
--Martijn Bak

  • Reported in: P1.0 (30-Dec-08)
#36706
Paper page: 89
Top of the page, last sentence in the paragraph, replace the second appearance of "iterator" with "accumulator. Thus, it should read, "The iterator c...more...
  • Reported in: P2.0 (07-May-10)
#43128
PDF page: 90
They’re likely to be standardized in JavaScript 2.0 (ECMAScript, 4th edition, due in 2007). Isn't this a little bit outdated? This is 2010, and the...more...
  • Reported in: P2.0 (10-May-10)
#43167
PDF page: 102

I think the = sign in the examples is hard to read. It looks way too much like a - sign.
--Martijn Bak

  • Reported in: P1.0 (15-Jan-09)
#37079
PDF page: 104

The code in this page has 'y' as vowel:
var md = s.match(/[aeiouy]/g);--Balaji Raghavan

  • Reported in: P2.0 (12-May-10)
#43188
PDF page: 111

(in separate Java-Script files)

shouldn't this read

(into separate Java-Script files)
--Martijn Bak

  • Reported in: P1.0 (26-Mar-09)
#38544
PDF page: 112
All download links to media.pragprog.com return 404. eg: media.pragprog.com/titles/cppsu/code/code/prototype/... Removing the extra 'code' from th...more...
  • Reported in: P2.0 (12-May-10)
#43189
PDF page: 112

Prototype used to sport an extra ...

should read

Prototype used to support an extra ...
--Martijn Bak

  • Reported in: P1.0 (13-Aug-08)
#33959
PDF page: 175
Paper page: 165

line 4: Replace '<input> with type="input"' with '<input> with type="text"'.--Mike Perz

  • Reported in: P2.0 (25-May-10)
#43441
PDF page: 177

(<select multiple=multiple">)

should read

(<select multiple="multiple">)
--Martijn Bak

  • Reported in: P1.0 (07-Aug-08)
#33622
PDF page: 183
The document.observe('contentloaded' should be document.observe('dom:loaded' as to be consistent with others and the 1.6 way of doing this.--Ken Colli...more...
  • Reported in: P1.0 (22-Aug-08)
#34180
PDF page: 233
Paper page: 224

The template is missing a closing curly brace } after 0.interests[2].--Daniel Ashton

  • Reported in: P1.0 (31-May-08)
#32241
PDF page: 258

the correct name for the option in the Effect.Highlight is restorecolor and not revertcolor--Sergio Pereira

  • Reported in: P1.0 (16-Jun-08)
#32401
Paper page: 330
The downloadable code for this book has a comment at the top of scriptaculous/autocomplete/advanced/suggestions.rhtml that does not appear in the samp...more...
  • Reported in: P1.0 (13-May-08)
#31990
PDF page: 345
Builder shorthand methods (perhaps all builder create methods too) require the second arg to be an array of elements and not the element itself. So fo...more...