Submit your own errata for this product.
The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".
The following errata were submitted by our customers and approved as valid errors by the author or editor.
Color Key: Serious Technical Mistake Minor Technical Mistake Language or formatting error Typo Question Note Update
|, Printed, PDF, Safari Books Online, Other Digital Version
In the jQuery ToDo code example
The error is from the http://examples.oreilly.com/0636920025252/ jQuery ToDo example code.
In the file "form.html", the save button has the data-rel="back" attribute. This attribute return you to the previous page. So you go back to the tasks list afer pressing the save button.
In the file "app.js", at line 125 there's a call to the $.mobile.changePage jQuery mobile API to change the page. So when you press save this code execute and move you to the tasks List AND the data-rel="back" is processed by jQuery Mobile and this time return you to the form. The there's a double back problem here.
The solution: remove the $.mobile.changePage API call OR remove the data-rel="back" attribute.
Note from the Author or Editor:
Thanks for the report! The mistake has been corrected in the Github repository with the code of the book, here:
||Jul 04, 2012