Product Overview
Build Your Own AJAX Web Applications
Corrections & Typos
Found a mistake that’s not listed here? You clever monkey! Contact us to let us know!
Confirmed typos in the June 2006 1st edition:
- p.16, 1st code listing
The second line of code on the page should be terminated by a semi-colon, not a comma. i.e.
this.responseFormat = 'text'; // 'text', 'xml', or 'object' - p.31, first paragraph
somepage.phpshould readfakeserver.php. - p.46, 3rd code listing
The variable
selfis supposed to be a pointer to the functionScopeTest. As it appears in the book,selfis being set to the result ofScopeTest, which is incorrect. To correct this, remove the parentheses from this assignment, as shown here:var onTimeout = function() { var self = ScopeTest; alert(self.message); } - p.116
The
.screenReaderclass used in the CSS code sample should be named.readerText. - pp.211-214
Google have stopped issuing keys for their SOAP Web API; unfortunately this part of the chapter can no longer be followed unless you already have a Google SOAP API key.
- p.209-212 code listings
The code listed incorrectly declares variables using the JavaScript keyword
var. Variable declarations should not be preceded byvarin PHP; each occurrence of this word should be removed for the PHP code to be correct. - p.247 & 250, code listings
references to
this.boardSizeandthis.panelSizeshould beself.boardSizeandself.panelSizerespectively - p.248, last code listing
The
ifcondition that includes((j + 1) % 2 > 0)should read((j + i) % 2 > 0) - Code archive, chapter 8, chess.php
$out = '{"respStatus":"update", "respData":'.getGame().'}';should be$out = '{"respStatus":"update", "respData":'.$game->getFromFile().'}';Due to the function
strftimenot working cross platform replace$moveTime = strftime('%Y-%m-%d %T', time());with$moveTime = date('Y-m-d H:i:s', mktime());
Instant Download!
This title available in Adobe PDF format only

