Errata

JavaScript for PHP Developers

Errata for JavaScript for PHP Developers

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
PDF Page 49
4th paragraph

(function () { for (var i = 1; i <= 3; i++) { document.getElementById('button-' + i).onclick = function () { // ... }; } }()); If there was no immediate function, the variable i would remain in the global scope. While in fact,the variable i still in global scope. if I update the code to: (function () { for (var i = 1; i <= 3; i++) { document.getElementById('button-' + i).onclick = function () { alert("This is button: " +i); }; } }()); All buttons will show "This is button 4" when clicked.

Anonymous  Dec 02, 2013 
PDF Page 97
2nd paragraph

"This may not the be the mot efficient way...." s/mot/most/

Randy Owens  Feb 25, 2013 
PDF Page 102
1st paragraph

"namespece()" should be "namespace()"

Randy Owens  Feb 25, 2013 
PDF Page 102
1st example, last line

"APP.namespece('APP.my.more');" Again, s/spece/space/

Randy Owens  Feb 25, 2013