summaryrefslogtreecommitdiff
path: root/html
diff options
context:
space:
mode:
authorJohn H. Anthony <johnhant@gmail.com>2010-09-04 15:05:28 +0200
committerJohn H. Anthony <johnhant@gmail.com>2010-09-04 15:05:28 +0200
commitb044930b49e51ffd25eb1c1ff49c987d7d2b0ea4 (patch)
treee08fec1b9f85a862aa40e5105f73b41c6fbe1ae5 /html
parentc35a035d25b06bc7ad403ec82dd4495056e599d7 (diff)
implemented voting
Voting now appears to work, using the AddVote servlet. The datastore update is not committed as a transaction yet; the quote and its votes has to be in the same entity group for transactions to work.
Diffstat (limited to 'html')
-rw-r--r--html/quotes.jsp4
1 files changed, 2 insertions, 2 deletions
diff --git a/html/quotes.jsp b/html/quotes.jsp
index 0c2fd17..3813350 100644
--- a/html/quotes.jsp
+++ b/html/quotes.jsp
@@ -33,9 +33,9 @@ hr {
<script>
-function ajaxvote(id, value) {
+function vote(id, value) {
var http = new XMLHttpRequest();
- http.open("GET","ajaxvote.jsp?id="+id+"&vote="+value);
+ http.open("GET","/vote?id="+id+"&vote="+value);
http.onreadystatechange=function() {
if(http.readyState==4) {
document.getElementById("v"+id).innerHTML = http.responseText;