View Single Post
  #1 (permalink)  
Old August 21st, 2015, 10:26 AM
PiotrG PiotrG is offline
Registered User
Points: 23, Level: 1
Points: 23, Level: 1 Points: 23, Level: 1 Points: 23, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2015
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Post 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.

Last edited by PiotrG; August 21st, 2015 at 10:41 AM..
Reply With Quote