Errata

Designing with JavaScript

Errata for Designing with 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 13
under the title "Time shifts"

var then= new Date(2001, 9,31); // This is Wrong, since there are
// ONLY 30 days in September.

SHOULD BE

var then = new Date(2001, 10, 31);

Anonymous   
Printed Page 21
3rd paragraph

When explaining the name/value pairs within Example 2-5:

It is incorrectly stated that the window width is 163px and the height is 26px -
Rather, these are the dimensions of the <img> link.

The correct values of the window width should read 500, while the height should read
400.

Anonymous   
Printed Page 80
4th paragraph

Jjumpin' jive script should be Jumpin' jive script

Anonymous   
Printed Page 80
Example 5-8

Unknown error in code prevents select items from appearing. I typed the code EXACTLY
(checked at least a dozen times) as written in the book, but the script did not
function.

Anonymous   
Printed Page 93
third paragraph after the sample code the author writes

"There's another advantage to the single frame method: since you're
using frames, though only one, you now have the ability to set the
margin height and width for your page." Perhaps the author isn't aware
that you can add those in on the body tag in standard HTML? I teach a
course on HTML Basic - Advanced and that is one thing I am sure to tell
my students. Using the topmargin, leftmargin attributes accomplishes
exactly that, as a matter of fact a book I require them to purchase for
my class is the HTML Pocket Reference (ISBN: 1-56592-579-3) and it
states that you can use marginwidth and marginheight attribute for
Netscape although not necessary because the topmargin, and leftmargin
are recognized by Netscape 4.x and higher.

Anonymous   
Printed Page 100
On page 100 example 6-11

On the bottom half of the page, in the code that follows the comment that reads as follows
//For IE, use object tag to open movie in Flash ActiveX control or
//Download it if it isn't available

The SECOND LINE of the code in that paragraph is missing a " > " character
the line reads -- document.write('<object ');
it should read -- document.write('<object>');

Anonymous   
Printed Page 127
lines 2-3

if (namevalue != null) {
reg.yourpassword.value = passwordvalue;
}

should be:

if (passwordvalue != null) {
reg.yourpassword.value = passwordvalue;
}

It is written correctly in example 8-12, below.

Anonymous   
Printed Page 152
first paragraph (code for "create folders")

The z-indices for the example in Example 9-10 are backwards.

Folder1's z-index should be 3 (highest because it is supposed to be visible when the
page first loads). Folder2's z-index should remain 2 because it is the middle folder
but Folder3's z-index should be set to 1.

As it is written in the book, when the page loads, the correct tab is present but the
active folder is the address folder with gray background. When the link for
addresses is clicked, the inbox folder is displayed.

All is corrected when the proper z-indices are placed in the code.

Anonymous   
Printed Page 163
Last sentence

clipBotton should be clipBottom

Anonymous