Ajax on Rails by Scott Raymond This errata page lists errors outstanding in the 3/07 reprint. If you have technical questions or error reports, you can send them to booktech@oreilly.com. Please specify the printing date of your copy. This page was updated February 21, 2008. Here's a key to the markup: [page-number]: serious technical mistake {page-number}: minor technical mistake : important language/formatting problem (page-number): language change or minor formatting problem ?page-number?: reader question or request for clarification +n: n'th paragraph from the top of the page -n: n'th paragraph from the bottom of the page Corrections: {23} 2nd code block, line 11 request.open('get', '/chapter2/myresponse'); -> request.open('get', '/chapter2/myresponse', true); {23} 2nd code block, 3 lines from end request.send(); -> request.send(null); (31) -1 graduallyfs -> gradually {36} +1 index.html -> index.rhtml {39} +1 repeater action -> repeat action (46) 1st code under Form Observers

Text to reverse: <%= text_field_tag 'textToReverse' %>

->

Text to reverse: <%= text_field_tag 'text_to_reverse' %>

{57} 4th code block, 2nd line <%= draggable_element :constraintDIV, :constraint => "'vertical'" %> -> <%= draggable_element :constraintDIV, :constraint => "vertical" %> (70) -3 (which replace an entire element) -> (which replaces an entire element) (72) +1 under Collection Proxies The $() method is used to find a collection of elements -> The $$() method is used to find a collection of elements (73) -1 The collect method (and its synonym, map) evaluates a block for each member of the collection and to store the result of each block in a new array. -> The collect method (and its synonym, map) evaluates a block for each member of the collection and stores the result of each block in a new array. (74) +1 under select/find_all ...store them in a Javascript Object. -> ...stores them in a Javascript Object. (74) +1 under reject ...store then in a Javascript Object. -> ...store them in a Javascript Object. (77) -3 Note that the only the code in the block... -> Note that only the code in the block... (78) -2 Class proxies can be used call static methods on JavaScript classes. -> Class proxies can be used to call static methods on JavaScript classes. (141) 2nd code example on page <%= exerpt post.body, @q %> -> <%= excerpt post.body, @q %>