diff --git a/www/js/propeliraj.js b/www/js/propeliraj.js index 827300d..fbd6dbd 100644 --- a/www/js/propeliraj.js +++ b/www/js/propeliraj.js @@ -4,18 +4,24 @@ function xhttp() { window.peljiLevo = function () { var xh = xhttp(); - xh.open('GET', "/cm?cmnd=PojdiLevo%20" + DOLZINA); + //xh.open('GET', "/cm?cmnd=PojdiLevo%20" + DOLZINA); + xh.open('GET', "/cm/PojdiLevo"); + xh.send(); } window.peljiDesno = function () { var xh = xhttp(); - xh.open('GET', "/cm?cmnd=PojdiDesno%20" + DOLZINA); + //xh.open('GET', "/cm?cmnd=PojdiDesno%20" + DOLZINA); + xh.open('GET', "/cm/PojdiDesno"); + xh.send(); } window.peljiRavno = function () { var xh = xhttp(); - xh.open('GET', "/cm?cmnd=PojdiRavno%20" + DOLZINA); + //xh.open('GET', "/cm?cmnd=PojdiRavno%20" + DOLZINA); + xh.open('GET', "/cm/PojdiRavno"); + xh.send(); }