By Developers, For Developers

Historical errata for Prototype and script.aculo.us

PDF PgPaper PgTypeDescriptionFixed onComments
37TYPO

Just before the middle of the page you got a small explanation typo mistake.

$$(‘#navbar li’ , ‘#sidebar li’ )
// -> all links within the elements of ID “navbar” or “sidebar”

might be

$$(‘#navbar li’ , ‘#sidebar li’ )
// -> all LI within the elements of ID “navbar” or “sidebar”

Hope this help ;-)

2007-07-19
151OK

At the end of the tip box, I guess it might be more clear to change the CSS selector to add the className from :

#myForm *:disabled

to

#myForm *[disabled]

as it is shown few lines upper.

Hope this help,

2007-12-17
139ERROR

“Do note the attribute names are HTML names, not DOM property names
(e.g. class instead of className, or for instead of htmlFor ).”

Element.writeAttribute accepts both, mainly because Safari will choke on something like this:

element.writeAttribute({class: ‘disabled’});

So you have the choice between writing:

element.writeAttribute({’class’: ‘disabled’});
// or
element.writeAttribute({className: ‘disabled’});

Same goes for htmlFor.

2007-07-19
26SUGGEST

Did I miss something or don’t you go over Element.addMethods at all ?

2007-07-19
16OK

Second line of the page:
it should be ‘)’ instead of ’’)

2007-12-17
16OK

Please forget what I wrote, knot in my eyes :(

2007-12-17
15TYPO

charset in meta tag needs to be ‘utf-8’, not ‘utf8’

2007-07-19
217TYPO

Mislav’s family name hates everything but utf-8 ;)

2007-12-17
191TYPO

In the ‘Careful with Hash keys…’ section, ‘alredy’ should be ‘already’

2007-07-19
192TYPO

In the first bullet, “The first element is
they key name”, ‘they’ should be ’the

2007-07-19
56ERROR

The escapeHTML and unescapeHTML example appears to be mising the / in the escaped version (both directions). It has

at the end going to <ht&gt; when I think it should be </h1&gt;

2007-07-19
116SUGGEST

I’m confused about the distinction between n and node in Staff.init(). They seem to be equal, so I don’t understand the purpose of node.

2007-12-17
179SUGGEST

Consider not to pass the deprecated insertion: Insertion.Top as a parameter to Ajax.Updater.
Instead use insertion: ‘Top’.

It was stated on page 131 that the Insertion object has been replaced, so it is a bit confusing when it appears on page 179 as the way to go about inserting with Ajax.Updater.

2007-07-19
35TYPO

$$(‘#navbar li’ , ‘#sidebar li’ )
// -> all links within the elements of ID “navbar” or “sidebar”


“links” should either be “LI elements” or “list items”

2007-07-19
41TYPO

Misconception aleter: for…in is not intended to iterate over an array.

“aleter” in there is a typo

2007-07-19
115ERROR

The code on this page returns an error at line 24 of the example:
Error: node.checked has no properties

I’m running with Firebug in Firefox 2.0.0.4

2007-12-17
49TYPO

The art of observing events, on page 90, properly
registered event handler methods take the current even object as their
first argument.

should read

The art of observing events, on page 90, properly
registered event handler methods take the current event object as their
first argument.

2007-07-19
71ERROR

In the second code example for ‘each’, the comment at the top has the order of the results reversed. It should say:
// Alerts ‘0: hello’ then ‘1: world’

2007-07-19
187TYPO

Small typo: “du to viewport size” should be “due to viewport size”

2007-07-19
233TYPO

OS X versions are all mixed up. 10.2 is Jaguar, 10.3 is Panther, 10.4 is Tiger (Puma is 10.1)

2007-07-19
60SUGGEST

The 2nd line of the 3rd paragraph (copied below) protrudes out into the margin, almost to the edge of the page.

Text: “aimed at turning the query string part of a URL (stuff like name=john&text=cool%20stuff&show=yes”

2007-12-17
85TYPO

On 2nd-to-last line
“for (var i = 0, length = this.length; i < length; i)”
replace comma with semicolon

2007-12-17
123TYPO

Last paragraph: “That’s for the staff logic…”
should be “That’s it for the staff logic…” ?

2007-12-17
127TYPO

End of last paragraph: “let’s to it.”
should be “let’s get to it.” or “let’s do it.”

2007-12-17
129TYPO

Last sentence of 2nd bullet: “An highlight effect would be nice, too, but we’ll get to that later.”
“An” should be “A”

2007-12-17
230TYPO

It is in Appendix B (there is no page number on the bottom): There are a couple of Blahs left. You probably should change them to a description or remove them.

2007-12-17
319TYPO

Weird character encoding issue

editableHTMLs = [
‘Andrew Dupont’,
‘Mislav Marohnitextquotesinglec’, // <——— !!!!!!
‘Thomas Fuchs’,
‘Tobie Langel’
]

2007-12-17
367SUGGEST

I don’t think it’s really necessary to explain why you chose Ruby. I’m glad you use Ruby as the server component for your examples, but I still find myself disagreeing with some of your reasons. Why not just get to the meat, and save stuff like this for your blog? Respectfully yours, Nathan.

2007-12-17
164TYPO

Last line:
“Fortunately, they key ones
(especially the completion-related ones) are safe.”
“They” instead of “the”

2007-12-17
231TYPO

paragraph “Common effect callbacks”.
“They are usually arranged in in before/after pairs,”
2 times “in”

2007-12-17
246TYPO

“Figure 13.4: Effect.Wavein action”
missing space

2007-12-17
254TYPO

“We’ll equip our Tux element with an expando isOut( ) function:”
what’s “expando”? ;)

2007-12-17
58TYPO

at the bottom … spacedOutText.strip() // -> ‘Hello there’
wouldn’t that be ‘Hello there!’ ?

2007-12-17
185TYPO

8.4 title: " olling: Ajax. eriodicalUpdater" (missing P’s)

2007-12-17
30TYPO

‘instanciation’ should be ‘instantiation’

2007-12-17
220SUGGEST

The first sentence of the first para should read, “…knowledge under our belts,” instead of “…knowledge behind our belt.” Corrects the cliché and corrects the case agreement (belts instead of belt).

2007-12-17
223SUGGEST

At the start of para 3, say, “In order to use the effects capabilities of script.aculo.us,” instead of “In order to use script.aculo.us’ effects capabilities.”

2007-12-17
99TYPO

In first paragraph ‘uniformously’ should be ‘uniformly’.

2007-12-17
53TYPO

Very often, we find yourselves needing to pass a method around, only

Typically, we’d find yourself doing something like this:

2007-12-17
154TYPO


tags I have never ever seen in production) are ommitted: only ,