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.php should read fakeserver.php.

  • p.46, 3rd code listing

    The variable self is supposed to be a pointer to the function ScopeTest. As it appears in the book, self is being set to the result of ScopeTest, 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 .screenReader class 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 by var in PHP; each occurrence of this word should be removed for the PHP code to be correct.

  • p.247 & 250, code listings

    references to this.boardSize and this.panelSize should be self.boardSize and self.panelSize respectively

  • p.248, last code listing

    The if condition 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 strftime not 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

Special Offer

Buy our AJAX book right now and receive FREE:

  1. Free with this Book Video Tutorial: ‘An Introduction to AJAX’ by Kevin Yank

    (value: $9.95)

That's almost $40 USD worth of value for just $29.95.

This is a limited offer, available only to customers who buy directly from sitepoint.com.

SitePoint Books

  • advocate best practice techniques
  • lead you through practical examples
  • provide working code for your web site
  • make learning easy and fun

100% Money Back Guarantee