[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.13

version 1.2, 2010/01/18 04:51:15 version 1.13, 2010/02/23 03:00:26
Line 1 
Line 1 
 <html><head>  <html><head>
 <title>todo.txt - javascript client</title>          <!-- $AFresh1: index.html,v 1.12 2010/02/18 06:25:31 andrew Exp $ -->
 <script src="prototype.js" type="text/javascript"></script>          <title>todo.txt - ajax client</title>
 <script type='text/javascript'>          <link rel="stylesheet" href="todo.css">
 function getFiles() {  
         document.getElementById('files').innerHTML = "Getting Files . . .";          <script src="scriptaculous/lib/prototype.js"></script>
         new Ajax.Request('/~andrew/user-bin/todo.cgi/andrew.txt', {          <script src="scriptaculous/src/scriptaculous.js?load=effects,controls"></script>
                 method: 'get',          <script src="lib/todo.js"></script>
                 onSuccess: function(response) {  
                          document.getElementById('files').innerHTML = response.responseText;  
                 }  
         });  
 }  
 function getList(list) {  
         document.getElementById('list').innerHTML = "Getting List . . .";  
         new Ajax.Request('/~andrew/user-bin/todo.cgi/andrew/' + list + '.txt', {  
                 method: 'get',  
                 onSuccess: function(response) {  
                          document.getElementById('list').innerHTML =  
                         '<pre>' + response.responseText + '</pre>';  
                 }  
         });  
 }  
 function getEntry(list, entry) {  
         document.getElementById('entry').innerHTML = "Getting Entry . . .";  
         new Ajax.Request('/~andrew/user-bin/todo.cgi/andrew/' + list + '/entry/' + entry + '.md5', {  
                 method: 'get',  
                 onSuccess: function(response) {  
                          document.getElementById('entry').innerHTML =  
                         '<pre>' + response.responseText + '</pre>';  
                 }  
         });  
 }  
 </script>  
 </head>  </head>
 <body onLoad="getFiles();getList('todo');getEntry('todo',5)">  
 <!-- $AFresh1$ -->  <body onLoad="TODO.getList('todo');TODO.getTags('todo');TODO.getFiles()">
 <div id='files'></div>      <h1>Files:</h1><div id='files'></div>
 <div id='list'></div>      <h1>List:</h1> <div id='list'></div>
 <div id='entry'></div>      <h1>Tags:</h1> <div id='tags'></div>
 </body></html>  </body></html>

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

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