diff options
author | Patrick Simianer <p@simianer.de> | 2015-12-11 15:46:03 +0100 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2015-12-11 15:46:03 +0100 |
commit | cd577c9a3926c1f718cd18e7478c5e9965a8d0bc (patch) | |
tree | 0f59d596614d01372b87d265743d1c3243bc4e44 | |
parent | 621d438f0406058f8ba5a2d0c11c9a4477d6a951 (diff) |
overhauled debug view
-rw-r--r-- | js/debug.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/js/debug.js b/js/debug.js index 633a5c4..4ff95de 100644 --- a/js/debug.js +++ b/js/debug.js @@ -1,15 +1,16 @@ $().ready(function() { + // use ajax to send commands to the server $(".ajax").each(function(x){ $(this).click(function(){ $.ajax({url: $(this).attr("tgt"), success: function(result){ - $("#ajax_result").html(result); + $("#control_reply").html(result); }}); }) }) + // display svg var d = atob(document.getElementById("svg_b64").innerHTML); $('#svg').append($('<svg width="10000px">'+d+'</svg>')); - -}) +}); |