[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.4 and 1.13

version 1.4, 2010/01/31 02:31:47 version 1.13, 2010/02/23 03:00:26
Line 1 
Line 1 
 <html><head>  <html><head>
 <title>todo.txt - ajax client</title>          <!-- $AFresh1: index.html,v 1.12 2010/02/18 06:25:31 andrew Exp $ -->
 <link rel="stylesheet" href="todo.css">          <title>todo.txt - ajax client</title>
 <script src="http://o.aolcdn.com/dojo/1.4/dojo/dojo.xd.js"></script>          <link rel="stylesheet" href="todo.css">
 <script type='text/javascript'>  
 var base_url = '/~andrew/user-bin/todo.cgi';  
   
   function loadIntoNode(data, xhr){          <script src="scriptaculous/lib/prototype.js"></script>
     if(xhr.args.node){          <script src="scriptaculous/src/scriptaculous.js?load=effects,controls"></script>
       xhr.args.node.innerHTML = data;          <script src="lib/todo.js"></script>
     }  
   }  
 function getFiles() {  
   dojo.byId('files').innerHTML = "Getting Files . . .";  
   dojo.xhrGet({  
     url: base_url,  
     node: dojo.byId("files"),  
     load: loadIntoNode  
   });  
   
 }  
 function getList(list) {  
   dojo.byId('list').innerHTML = "Getting List . . .";  
   dojo.xhrGet({  
     url: base_url + '/' + list + '.txt',  
     node: dojo.byId("list"),  
     load: loadIntoNode  
   });  
 }  
 function getEntry(list, entry) {  
         document.getElementById('entry').innerHTML = "Getting Entry . . .";  
   dojo.xhrGet({  
     url: base_url + '/' + list + '/entry/' + entry + '.md5',  
     node: dojo.byId("entry"),  
     load: loadIntoNode  
   });  
 }  
 </script>  
 </head>  </head>
 <body onLoad="getFiles();getList('todo');getEntry('todo',5)">  
   
 <!-- $AFresh1: index.html,v 1.3 2010/01/19 03:33:13 andrew Exp $ -->  <body onLoad="TODO.getList('todo');TODO.getTags('todo');TODO.getFiles()">
 <div id='files'></div>      <h1>Files:</h1><div id='files'></div>
 <pre><div id='list'></div></pre>      <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.4  
changed lines
  Added in v.1.13

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