Errata

Prototype and Scriptaculous: Taking the Pain out of JavaScript

Errata for Prototype and Scriptaculous: Taking the Pain out of JavaScript

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
Printed Page 1.3
There's at least two typos on this little page.

There's at least two typos on this little page. 1) The second e-one is actually e-ell. 2) The javascript
call is mal-formed.

ORIGINAL:

<div id="e1"><p>element to wipe</p></div>

<script>

function wipeDown()
{
Effect.BlindDown("el");
}

</script>

<a href="javascript; void (wipeDown())">click to run effect</a>

Anonymous   
Printed Page 3
xx

I bought the article and I have problems testing the examples. Why doesn't the author provide the
softcopy of the source codes or examples.

(Paragraph 3.1.2.) The $F function
may be accessed via $F("name") and $F("name").
> should be:
may be accessed via $F("name") and $F("gender").

Anonymous   
Printed Page 3.2
First sentence.

we may do this is a more streamlined manner
should be *
we may do this in a more streamlined manner

Anonymous   
Printed Page 3.2.1
Second sentence.

There are two commas after:
initialize,,

Anonymous   
Printed Page 3.2.1
First sentence.

The last words of the sentence, "Class.create", have a vertical space separating them from the sentence
and do not have a vertical space between them and the ensuing code. The space should instead be between
these words and the "var Point =..." code.

Anonymous   
Printed Page 3.3.3
Table, sixth row (stripScripts)

Teturns a string with <script> tags removed

Should be
Returns....

Anonymous   
Printed Page 4
Example 4-1. referencingScriptaculous.html

In line :
<a href="javascript:void Effect.toggle('d1',blind');">
A quote is missing before the word "blind", it should be :
<a href="javascript:void Effect.toggle('d1','blind');">
(?) Chapter 4. Using Scriptaculous => example 4-1 and 4-2;

[error in the javascript code example seen in safary (sorry but I am unable to see the page number in
the web)]

[safari web using firefox 2.0.0.11]

Example 4-1. referencingScriptaculous.html (and also teh example 4-2)

When executing the code example, the following line:
<a href="javascript:void Effect.toggle('d1',blind');">
open/close blind</a>

gives an error:

unterminated string literal
[Break on this error] void Effect.toggle('d1',blind');

There is a ' missing:

patch:

<a href="javascript:void Effect.toggle('d1','blind');">
open/close blind</a>

Anonymous   
Printed Page 26
Example 4.2

Error in code example:

<a href="javascript:void Effect.toggle('d1',blind');">

There is a single quote missing before blind. The example should read:

<a href="javascript:void Effect.toggle('d1','blind');">

Anonymous