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

Chapter 17's To Do List Application

The To Do list application used one HTML file and two PHP files.

todo.html

<html><head><title>To Do</title> <script type = "text/javascript"> <!-- hide me from older browsers var user_list_timeout; var current_list_timeout; var seconds_between_user_list_update = 60000; var seconds_between_todo_list_update = 5000; var request; function displayLogin() { var theForm = "<form>Name: <input type='text' name='name'><br> " + "Password: <input type='password' name='password'> " + "<input type='button' value='submit' onClick='doLogin(this.form);'><br>" document.getElementById("loginArea").innerHTML = theForm; } function doLogin(my_form) { readFileDoFunction("userInfo.xml", "GET", function() { if (request.readyState == 4) ...

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