Susan Harkins (218) [Avatar] Offline
#1
Please post any errors you find in the published version of JQuery in Action, Third Edition here. We'll compile and publish a comprehensive list for everyone's convenience. Thank you!

Susan Harkins
Errata Editor
AurelioDeRosa (20) [Avatar] Offline
#2
At page 177, the snippet in the middle have the following element:

<option value="equal">is exactly</option>


however it should be:

<option value="equals">is exactly</option>


So, the value of the value should be equals and not equal.
AurelioDeRosa (20) [Avatar] Offline
#3
As noted in this post, Table 6.1 is missing the contextmenu event.
caterpillar (7) [Avatar] Offline
#4
P. 161,

In the table of "Method syntax: trigger"…

The signature of the trigger method says trigger(eventType[, data]), but the first one of "Parameters" says event. I think it should be eventType.

caterpillar (7) [Avatar] Offline
#5
Figure 9.8 is wrong. It should show test-button, not button-container.
caterpillar (7) [Avatar] Offline
#6
Page. 268

In the description of the data parameter, it says

Specifies any data that’s to be passed as request
parameters. This parameter can be a string that will be used as the query string
or response body ....


Should response body be modified to request body?

caterpillar (7) [Avatar] Offline
#7
Page. 290

In the description of the data parameter, it says


This parameter can be a string that will be used as the query string or response
body, an object whose properties are serialized, or an array of objects whose name
and value properties specify the name/value pairs.



Should response body be modified to request body?
caterpillar (7) [Avatar] Offline
#8
Page 313.

You can and should adopt WAI-ARIA (http://www.w3.org/TR/waiaria/)
as well.


The url shown is wrong, the correct one is http://www.w3.org/TR/wai-aria/.

caterpillar (7) [Avatar] Offline
#9
Page 326.

In the middle of the page, a paragraph says...

The third point of the list is optional for a good reason. Let’s say that some developers
are using a plugin we’ve published. Things are going nice and our plugin is successful.
We want to ship a new version having new features, and here comes the
problem. Our file is called something like jquery.jqia.contextMenu-1.1.0.js. Thus, the
developers using our plugin not only have to update the JavaScript file but also have
to change the markup to update the version suffix. It would have been much simpler
if our plugin file was called jquery.jqia.contextMenu.js, specifying the version with a
comment inside the file. Doing so, the developers could have replaced only the
JavaScript file without updating the markup.


According to the description of this paragraph, I think the optional rule is "Optionally include the version number of the plugin, the 5th point of the list.

caterpillar (7) [Avatar] Offline
#10
Page 415.

In the last paragraph, it says...

A case where the use of context can often speed up the performance is when you
provide an ID.


Is it should be modified as the following?

A case where the use of context can often speed up the performance is when you don't
provide an ID.
382906 (1) [Avatar] Offline
#11
page 457, in the Listing 1.
bullet 5, reference stored in obj1.indentifyMe should be obj1.identifyMe.

eionut (1) [Avatar] Offline
#12
Hello!

I recently bought this book and I'm trying to run the listing 2.1 code, but I get the following errors:

GET file://code.jquery.com/jquery-1.12.4.min.js net::ERR_FILE_NOT_FOUND
listing-2.1.html:12 Uncaught ReferenceError: $ is not defined


The first one is due to the fact that the CDN version can't be loaded, since I run this code locally, but, the second one... ?
I think this error is do to the fact that document.write writes the jQuery script after the script in which document.write is located, so, the $ is called before it's declaration. So, there should be another script to contain the jQuery calling. Am I right or am I doing something wrong?

Thanks!