Index: lams_tool_scratchie/web/pages/learning/learning.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_scratchie/web/pages/learning/learning.jsp,v diff -u -r1.18 -r1.19 --- lams_tool_scratchie/web/pages/learning/learning.jsp 5 Apr 2014 13:49:35 -0000 1.18 +++ lams_tool_scratchie/web/pages/learning/learning.jsp 19 Sep 2014 13:37:41 -0000 1.19 @@ -30,11 +30,15 @@ var id = '-' + itemUid + '-' + answerUid; $.ajax({ - url: '', - data: 'answerUid=' + answerUid, + url: '', + data: 'sessionMapID=${sessionMapID}&answerUid=' + answerUid, dataType: 'json', type: 'post', success: function (json) { + if (json == null) { + return false; + } + if (json.answerCorrect) { //show animation $('#image' + id).attr("src", "?reqID=" + (new Date()).getTime()); @@ -53,13 +57,6 @@ } } }); - - $.ajax({ - url: '', - data: 'sessionMapID=${sessionMapID}&answerUid=' + answerUid, - dataType: 'json', - type: 'post' - }); } function finish(){