console.log("movingdistance="+movingdistance);
console.log("movex="+movexr);
console.log("movey="+moveyr);
-
switch(directionSwitch){
- case "Up\b":
+
+ case 'Up':
moveyr = parseInt(moveyr) + (parseInt(movingdistance));
$("#movey").val(String(moveyr));
- break;
+ $('#movey').change();
+ break;
- case "Down":
+ case 'Down':
moveyr = parseInt(moveyr) - (parseInt(movingdistance));
$("#movey").val(String(moveyr));
+ $('#movey').change();
break;
- case "Left":
+ case 'Left':
movexr = parseInt(movexr) + (parseInt(movingdistance));
$("#movex").val(String(movexr));
+ $('#movex').change();
break;
- case "Right":
+ case 'Right':
movexr = parseInt(movexr) - (parseInt(movingdistance));
$("#movex").val(String(movexr));
$("#currentx").val(String(movexr));
+ $('#movex').change();
break;
}
$.ajax({