Jump to content


Chapter 10 Page 394 - Bad

  • Please log in to reply
No replies to this topic

#1 Midnight4


    New Member

  • Members
  • Pip
  • 7 posts

Posted 18 October 2012 - 07:39 AM

I think there are two examples of bad code on page 394 of Chapter 10.

First, in the box for the code to go in sightings_end.html the last two lines are


I can see no reason for this and my code works when they are removed.

Second, in the box for my_scripts.js the seventh line of code is written as

$( "#distance".val(ui.value);)

I think this is wrong and the code should be similar to that given on pages 395, which means the corrected code should move the parentheses and be

$( "#distance").val(ui.value);

Finally, some reason the editor won't let me change the title of this post and add code to the end.

Edited by Midnight4, 18 October 2012 - 07:40 AM.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users