Skip to content

Commit

Permalink
Fixed Bug #08 : fixed encodeURIComponent and AJAX call.
Browse files Browse the repository at this point in the history
  • Loading branch information
deepanshu17 committed Nov 19, 2015
1 parent c614fa0 commit 53a5126
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions source/java_visualize/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,11 @@
}

function saveTextasJNLP() {
var code = pyInputCodeMirror.getValue();
console.log(code);
var code = encodeURIComponent(pyInputCodeMirror.getValue());
$.ajax({
url: "upload.php",
type: "post",
data: "codeToUpload=" + encodeURIcomponent(code),
data: "codeToUpload=" + code,
success: function(res) {
var codebase = 'http://' + window.location.hostname + window.location.pathname;
var filebase = codebase + "upload/" + res + "?forcedownload=1";
Expand Down

0 comments on commit 53a5126

Please sign in to comment.