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) ...
Get The Book of JavaScript, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.