Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: JavaScript Programmer's Reference
This is the forum to discuss the Wrox book JavaScript Programmer's Reference by Alexei White ISBN: 978-0-470-34472-9
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: JavaScript Programmer's Reference section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old October 8th, 2009, 08:48 AM
Authorized User
 
Join Date: Oct 2009
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Errata

Can't say I like the look of the errata form that is linked from the book page - far more complicated than O'Reilly's version ( http://oreilly.com/catalog/errata.cs...=9780596802448 )

So I'm putting my observations here as I come across them and hope they can be commented on and moved to the 'proper' errata area if confirmed....

Page
Where
What's Up

19
4th para
www.wroxjavascript.com doesn't appear to exist

33
Example Code Downloaded from site (in an number of them)
The code points to "/javascript/test.js"
but test.js is in the same directory (not in own directory javascript) so the code when run doesn't work.
(More confusing as often test.js does nothing)

35
1 para
Spelling - Youe should be You

66
In the btm table
For the OR example 'a = b' should be 'a |= b'

70
Exceptions to the Rule section
The final 3 examples seem to all be
"book" || false
and give differing answers...


Eddie

Last edited by Eddierocks; October 8th, 2009 at 08:56 AM.
Reply With Quote
  #2 (permalink)  
Old October 12th, 2009, 03:36 AM
Authorized User
 
Join Date: Oct 2009
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Page 111
Figure 5-2
Confusing anyway but in the After shouldn't it have one box for threeArgumentsBackup and one for threeArguments (the bottom one I assume).

Would probably prefer a During part of the figure to see what is where when
var threeArgumentsBackup = threeArguments
happens....? Assume both are pointing to the same memory position and that
threeArguments position only changes when the 'new' function is declared

Eddie
Reply With Quote
  #3 (permalink)  
Old October 12th, 2009, 04:27 AM
Authorized User
 
Join Date: Oct 2009
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Page 115
Argument Hashes 3rd para
English iffy - "if use" should probably be "if you use"

Page 116
1st para
Last sentence uses double example plus end should say 'and only display those that are [available]' ?

Eddie
Reply With Quote
  #4 (permalink)  
Old October 12th, 2009, 04:45 AM
Authorized User
 
Join Date: Oct 2009
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Page 119/120
Example code download
For the code to work
<div id="myDiv">
</div>
is required

Eddie
Reply With Quote
  #5 (permalink)  
Old October 12th, 2009, 05:46 AM
Authorized User
 
Join Date: Oct 2009
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Page 123 / 124 / 125
Example code download - CircularReferenceClosureMemoryLeak.html
Doesn't work as has extra <script> </script> around the div so 'Hello world' cannot show

Example code download - ClosureMemoryLeakSolution_BreakReference.html
Is missing the div so won't work
Plus - in this example is it still leaking? (the alerts says yes?)

Example code download - ClosureMemoryLeakSolution_DifferentScope_BreakRefe rence.html & ClosureMemoryLeakSolution_DifferentScope_BreakRefe rence2.html
Are missing the div so won't work

Example code download - both accidental closures
Are missing the div so won't work

Eddie

Last edited by Eddierocks; October 12th, 2009 at 06:06 AM.
Reply With Quote
  #6 (permalink)  
Old October 12th, 2009, 09:05 AM
Authorized User
 
Join Date: Oct 2009
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Page 129
1st para - last line
Either 'how' missing or 'behave' is not supposed to be there?

Page 136
Numeric Helpers - 3rd para
'is the value is' should be 'if the value is' ?

Eddie
Reply With Quote
  #7 (permalink)  
Old October 16th, 2009, 02:34 AM
Authorized User
 
Join Date: Oct 2009
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Page 158
1st para
last sentence, 2nd last word - 'our' or 'your'?

Page 160
2nd para
Not sure last sentence makes sense?

Page 175
Table - *
"JavaScriptScript" mentioned twice

Page 183
3rd para
'you mentioned' should be 'I mentioned' ?

Code Example Download - RegExpStaticProperties.html
2nd last line of code
document.write( RegExp["$'"] + "<br />" ); // "Both Java and"
should be
document.write( RegExp["$`"] + "<br />" ); // "Both Java and"
ie ' should be ` .

Page 186
2nd para + last sentence on page
Is there an extra bit after the RegExp mentioned that shouldn't be there?

Eddie

Last edited by Eddierocks; October 27th, 2009 at 07:56 AM.
Reply With Quote
  #8 (permalink)  
Old October 16th, 2009, 05:40 AM
Authorized User
 
Join Date: Oct 2009
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Page 188
Trimming whitespace

OK Regular Expressions have always confused me but the explanations seem to be clearer in this book....but

The example here in this section is/was somewhat confusing:

1st the example in the book doesn't quite match the download code
There are more spaces in the download example string but its length is 52
- the one in the book is shorter and says length of 54...

The Final String length says 50 but if you add the Final String up then you appear to get 47

50 is correct in the download code case because of the extra spaces in the middle but when on the screen the browser loses the whitespace reducing it to one space only.

Feel more explanation on the numbers would help

Eddie
Reply With Quote
  #9 (permalink)  
Old October 19th, 2009, 03:45 AM
Authorized User
 
Join Date: Oct 2009
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Page 191
The examples on page and in download:
There are two bold tags ( <b> ) instead of one and a closing one ( </b> )

Page 202 / 203
XOR
Possibly should be a little clearer that it comes back true only if one of the values is true - not both - or the example should cover the true/true scenario?

Page 207
Downloaded code - ConvertingToNumber.html
writes out variables 'd' & 'e' instead of 'c' & 'd'

Page 227
1st para
't are' ...

Before List of methods
Sentence starts with 'Are' ....

Page 233
Downloaded code - ArrayCloning.html
Array.prototype.clone: function() {
should be
Array.prototype.clone = function() {

Eddie
Reply With Quote
  #10 (permalink)  
Old October 27th, 2009, 07:55 AM
Authorized User
 
Join Date: Oct 2009
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Page 236
In a couple of places:
myDate = new Date (year, month, date [.....
shouldn't it be....
myDate = new Date (year, month, day [.....
?

Page 242
Download code example
document.write(Halloween > AprilFools + "<br />"); // true
needs to be
document.write((Halloween > AprilFools) + "<br />"); // true
otherwise returns false due to concat with the br
- in a few places

Plus 'Halloween" / "Holloween" [mis-]spellings causing problems

Page 263
2nd last para
'set and set' should be 'get and set' ...?

Page 264
Download code example - definegettersandsetters.html
needs to declare dave to work:
var dave = new Person("Dave");

Page 268
Example box comment
'animal the lays eggs' should be 'animal that lays eggs'

Page 276
On page and download example (SetWindowStatus.html)
onmousover should be onmouseover

Page 280
Download code example
Missing initial <script> so wont work

Also in example that follows in the book...

Page 320
2nd para
...bubble the even back.... should be ...bubble the event back....

Page 326 and 327
Download code examples of 'Detecting Keystrokes and 'Mouse Position' would be nice

Page 369+
Download code examples (various I think)
Missing document.write so don't see what's going on

Page 371
On page and download code example
IE side of if statement missing the collapse code

Eddie
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Errata bwolohan BOOK: Professional Team Foundation Server ISBN: 0-471-91930-6 1 November 2nd, 2010 05:33 PM
Errata vidyar_rajan Beginning PHP 0 August 31st, 2006 05:37 AM
Errata omarosa BOOK: Professional PHP 5 ISBN: 978-0-7645-7282-1 7 October 6th, 2005 09:21 AM
Errata ursjenzer BOOK: Professional Assembly Language 0 July 5th, 2005 09:05 AM



All times are GMT -4. The time now is 09:56 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.