[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.2 and 1.3

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

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

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