p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning JavaScript 5th Edition (http://p2p.wrox.com/forumdisplay.php?f=793)
-   -   Chapter 11 exmaple 6 wrong function name (http://p2p.wrox.com/showthread.php?t=94859)

PiotrG August 21st, 2015 10:26 AM

Chapter 11 exmaple 6 wrong function name
In the explanation for Example 6 there is sentence:


In the following line, you add the value of the radio button the user has selected to your message string:

compSpec = compSpec + findSelectedSpeedValue();
compSpec = compSpec + "\nWith the following additional components:\n";

There is actually getSelectedSpeedValue() function not findSelectedSpeedValue()

Also right below that, there is:


It’s here that you loop through each element on the form using myForm[controlIndex], which returns a reference to the element object stored at the
controlIndex index position.
You’ll see that in this example the element variable is set to reference the object stored in the myForm collection at the index position stored in variable controlIndex.
This quote is copied from equivalent example in previous version of Book (Beginning JavaScript 4th) :)
In our example in actual book (5th) we don't have variable called controlIndex.

All times are GMT -4. The time now is 07:21 AM.

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