O'Reilly logo

The Book of JavaScript, 2nd Edition by thau!

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

This is your final exam. If you got this working, take yourself out to dinner. If you gave it a good shot, take yourself out to dinner. Heck, if you've read to this point in the book, take yourself out to dinner.

The assignment was to add these critical features to the To Do list application described in the chapter:

  • Allow new users to join the service

  • Allow a user to permit another user to access his or her To Do list

Only the HTML file containing the JavaScript needs to be changed here. First, you needed to make a change to the HTML at the bottom of the page to add the "join" link to the login section:

<h2>Login Section</h2> <div id = "loginArea"> <a href = "#" onClick = "displayLogin(); return false;">login</a> or <a href = "#" onClick ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required