Wrox Programmer Forums
|
Book: Beginning iOS Application Development with HTML and JavaScript
This is the forum to discuss the Wrox book Beginning iOS Application Development with HTML and JavaScript by Richard Wagner; ISBN: 978-1-1181-5900-2
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Book: Beginning iOS Application Development with HTML and JavaScript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 23rd, 2012, 07:06 PM
Registered User
 
Join Date: Aug 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs down Chapter 3 errors

There are errors in the code I downloaded, and the some of the errors are also in the book.

In BIDHJ-Ch03-Ex1.html
Code:
document.getElementById("movieList.).insertBefore(f, casa);
should be:
Code:
document.getElementById("movieList").insertBefore(fb, casa);
and
Code:
document.getElementById("movieList.).insertBefore(f, br.nextSibling);
should be:
Code:
document.getElementById("movieList").insertBefore(fb, br.nextSibling);
besides these errors, I think that the script should be placed at the end of the 'body' element, otherwise getElementById() will not find the elements.

In the other example, BIDHJ-Ch03-Ex2.html, there are some other issues:
I could not get any desktop browsers [maybe Safari in iPhone is different] work with the method createAttribute("name", "value"). All references I found on Internet indicated two steps:
1. a = createAttribute("name")
2. a.nodeValue("value")
[or use e.setAttribute("name", "value")]

So, besides moving the script at the bottom of the 'body', I had to do the following changes:
1.
Code:
 a = document.createAttribute("id"); a.nodeValue  = "film_29299";
instead of
Code:
document.createAttribute("id", "film_29299");
2.
Code:
 e.setAttributeNode(a);
instead of
Code:
e.appendChild(a);
[need to do this three times]

Final notes:
I found the level of support for this book pretty poor, since the author didn't answer/address any of the issues posted in the forum.

I also found Wrox errata system very difficult to handle, as, despite it initially asked me only for my email and my comments; as soon as I input my email it suddenly displayed tons of input fields I really don't want to waste my time to answer ...enough that I'm helping them for free:)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 2 To Do List errors louie2107 BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 5 March 23rd, 2011 08:56 AM
Chapter 7 errors janilane BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 7 May 5th, 2009 03:49 AM
More Errors in chapter 7..... rollercoaster BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 5 October 3rd, 2006 03:49 PM
Chapter 6 Try It Out errors Voltron ASP.NET 2.0 Basics 0 August 9th, 2006 01:42 AM
Chapter 4 Errors? DRAYKKO BOOK: Beginning Java 2 3 June 1st, 2004 07:47 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.