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

version 1.1, 2010/01/18 04:19:04 version 1.6, 2010/01/31 03:40:21
Line 1 
Line 1 
 <html><head><title></title></head><body>  <html><head>
   <!-- $AFresh1: index.html,v 1.5 2010/01/31 03:12:02 andrew Exp $ -->
   <title>todo.txt - ajax client</title>
   <link rel="stylesheet" href="todo.css">
   <!-- <script src="http://o.aolcdn.com/dojo/1.4/dojo/dojo.xd.js"></script> -->
   <script src="dojo/1.4/dojo/dojo.xd.js"></script>
   <script type='text/javascript'>
   var base_url = '/~andrew/user-bin/todo.cgi';
   
   function loadIntoNode(data, xhr){
     if(xhr.args.node){
       xhr.args.node.innerHTML = data;
     }
   }
   
   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 + '.md5',
       node: dojo.byId("entry"),
       load: loadIntoNode
     });
   }
   </script>
   </head>
   
   <body onLoad="getFiles();getList('todo');getEntry('todo',5)">
   <div id='files'></div>
   <div id='entry'></div>
   <pre><div id='list'></div></pre>
 </body></html>  </body></html>

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

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