Codes for Ajax The Definitive Guide by Anthony Holdener and some online resources like Mozilla Foundation.