Errata


Print Print Icon

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. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.


Color Key: Serious Technical Mistake Minor Technical Mistake Language or formatting error Typo Question



Version Location Description Submitted By Corrected
Printed Page 12
2nd Paragraph of section 1.7

This, and a number of other security holes, has been fixed.

NOW READS:
This and a number of other security holes have been fixed.

Anonymous  Jul 2004
Printed Page 17
top of page

Here's what youll find in Part III

NOW READS:
Here's what youll find in Part II

Anonymous  Nov 2003
Printed Page 214
Example 13-5 Extracting arguments from a URL

Two lines were as follows:
args[argname] = unescape(value);
// in JavaScript 1.5 use decodeURIComponent() instead of escape()

They NOW READ:
args[argname] = unescape(value);
// in JavaScript 1.5 use decodeURIComponent() instead of unescape()

Anonymous  Nov 2003
Printed Page 381-2
Example 19-3; page 381, the beginDrag() function

else if (document.attachEvent) { // IE 5+ Event Model
// In the IE Event model, we can't capture events, so these handlers
// are triggered when only if the event bubbles up to them.
// This assumes that there aren't any intervening elements that
// handle the events and stop them from bubbling.
document.attachEvent("onmousemove", moveHandler);
document.attachEvent("onmouseup", upHandler);
}

NOW READS:

else if (document.attachEvent) { // IE 5+ Event Model
// In the IE Event model, we capture events by calling
// setCapture() on the element to capture them

elementToDrag.attachEvent("onmousemove", moveHandler);
elementToDrag.attachEvent("onmouseup", upHandler);
elementToDrag.setCapture();
}

AND, page 382, the upHandler() function:

else if (document.detachEvent) { // IE 5+ Event Model
document.detachEvent("onmouseup", upHandler);
document.detachEvent("onmousemove", moveHandler);
}

NOW READS:

else if (document.detachEvent) { // IE 5+ Event Model
elementToDrag.detachEvent("onmouseup", upHandler);
elementToDrag.detachEvent("onmousemove", moveHandler);
elementToDrag.releaseCapture();
}

The fix uses the setCapture() and releaseCapture() methods of IE5 to enable IE's
version of event capturing. Credit for this fix goes to Bob Kline of RK Systems
(http://www.rksystems.com).

Anonymous  Mar 2005
Printed Page 395
top line of Example 20-2 (continued)

function supressErrors()...

NOW READS:
function suppressErrors() ...)

Two lines below, similarly:
window.onerror = supressErrors;

NOW READS:
window.onerror = suppressErrors;)

Anonymous  Nov 2003
Printed Page 484
Static Functions - Math.exp()

As previously described, 'Computes an exponent of e' is incorrect.

NOW READS:
'computes a power of e.'

Anonymous  Nov 2003
Printed Page 556
2nd paragraph from bottom

"It is more common, however, to use the all[] array to retreive..."
PREVIOUSLY IN PRINT: retreive

NOW READS:
retrieve

Anonymous  Nov 2003