version 1.7, 2010/02/02 06:11:31 |
version 1.8, 2010/02/13 22:32:18 |
|
|
<html><head> |
<html><head> |
<!-- $AFresh1: index.html,v 1.6 2010/01/31 03:40:21 andrew Exp $ --> |
<!-- $AFresh1: index.html,v 1.7 2010/02/02 06:11:31 andrew Exp $ --> |
<title>todo.txt - ajax client</title> |
<title>todo.txt - ajax client</title> |
<link rel="stylesheet" href="todo.css"> |
<link rel="stylesheet" href="todo.css"> |
<script src="scriptaculous/lib/prototype.js"></script> |
<script src="scriptaculous/lib/prototype.js"></script> |
|
|
$('list').insert({ bottom: new Element('div', { id: todo[i].md5 }) }); |
$('list').insert({ bottom: new Element('div', { id: todo[i].md5 }) }); |
$(todo[i].md5).update(todo[i].text); |
$(todo[i].md5).update(todo[i].text); |
|
|
var entry_url = base_url + '/' + list + '/' + todo[i].md5; |
var entry_url = base_url + '/' + list + '/entry/' + todo[i].md5; |
|
|
new Ajax.InPlaceEditor(todo[i].md5, entry_url + '.txt', { |
new Ajax.InPlaceEditor(todo[i].md5, entry_url + '.txt', { |
loadTextURL: entry_url + '.txt', |
cols: 80, |
|
//loadTextURL: entry_url + '.txt', |
}); |
}); |
} |
} |
} |
} |