Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial

Marcus Parsons
15,718 PointsTo-Do List App Upgraded!
This is my version of the To-Do List App that we make with Andrew Chalkley in his JavaScript course: http://teamtreehouse.com/library/interactive-web-pages-with-javascript.
It is located here: http://www.marcusparsons.com/projects/todolist/index.html
I changed a lot of the styling, but more importantly, I added persistence using HTML5's localStorage, which means that items in your to-do list don't go away when you close the page or the browser. I added the LZ-String compression tool, as well, to maximize the amount of storage available. I also added some compatibility layers for dealing with IE, and some extra helper things such as the ability to press Enter in the Add box to add a new to-do item, and press Enter in the edit input field to save the edit of a to-do list item (no pun intended).
Let me know what you think!
3 Answers

Ayoub AIT IKEN
12,314 PointsI like it its good, just a plus that you would want to add, when hitting enter(or clicking on the add button) to add a blank task, you can popup a msg to the user that he has to fill the blank in order to create a task ! so that the program could be responsive to any attempt of the user !
Cheers !

Nikita Web
1,441 Pointsthanks for sharing your work!

Marcus Parsons
15,718 PointsThank you for taking a look! :)
Marcus Parsons
15,718 PointsMarcus Parsons
15,718 PointsGood call! I'll go ahead and implement something like that. I don't like alert boxes, myself, but an error element is not a bad idea at all. Thanks, Ayoub!
Ayoub AIT IKEN
12,314 PointsAyoub AIT IKEN
12,314 Pointsyeah, me neither, appending some a p tag in a red style would do the thing I guess hh ! you most welcome !