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! While you're at it, check out some resources Treehouse students have shared here.

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

JavaScript

To-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

I 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 !

Good 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!

yeah, me neither, appending some a p tag in a red style would do the thing I guess hh ! you most welcome !

Nikita Web
Nikita Web
1,441 Points

thanks for sharing your work!

Thank you for taking a look! :)