Chapter 17's To Do List Application

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


<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) ...

Get The Book of JavaScript, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.