[BACK]Return to index.html CVS log [TXT][DIR] Up to [local] / todotxt / Text-Todo-REST-API / example / htdocs

Diff for /todotxt/Text-Todo-REST-API/example/htdocs/index.html between version 1.1 and 1.3

version 1.1, 2010/01/18 04:19:04 version 1.3, 2010/01/19 03:33:13
Line 1 
Line 1 
 <html><head><title></title></head><body>  <html><head>
   <title>todo.txt - javascript client</title>
   <link rel="stylesheet" href="todo.css">
   <script src="prototype.js" type="text/javascript"></script>
   <script type='text/javascript'>
   function getFiles() {
           document.getElementById('files').innerHTML = "Getting Files . . .";
           new Ajax.Request('/~andrew/user-bin/todo.cgi/.txt', {
                   method: 'get',
                   onSuccess: function(response) {
                            document.getElementById('files').innerHTML = response.responseText;
                   }
           });
   }
   function getList(list) {
           document.getElementById('list').innerHTML = "Getting List . . .";
           new Ajax.Updater('list', '/~andrew/user-bin/todo.cgi/' + list + '.txt', {
                   method: 'get',
           });
   }
   function getEntry(list, entry) {
           document.getElementById('entry').innerHTML = "Getting Entry . . .";
           new Ajax.Request('/~andrew/user-bin/todo.cgi/' + list + '/entry/' + entry + '.md5', {
                   method: 'get',
                   onSuccess: function(response) {
                            document.getElementById('entry').innerHTML =
                           '<pre>' + response.responseText + '</pre>';
                   }
           });
   }
   </script>
   </head>
   <body onLoad="getFiles();getList('todo');getEntry('todo',5)">
   <!-- $AFresh1: index.html,v 1.2 2010/01/18 04:51:15 andrew Exp $ -->
   <div id='files'></div>
   <pre><div id='list'></div></pre>
   <div id='entry'></div>
 </body></html>  </body></html>

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.3

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>