Switched to POST request

This commit is contained in:
2015-04-21 17:36:40 -04:00
parent ddf1d00f1b
commit 81a08cb9f8

View File

@@ -48,13 +48,13 @@ block script
function compile() {
var code = encodeURIComponent($("#inputCode").val());
$.ajax({
type: "GET",
type: "POST",
async: true,
url: "http://www.contrib.andrew.cmu.edu/~amgutier/cc0.cgi",
dataType: "jsonp",
dataType: "json",
data: {
data: code
},
jsonpCallback: "callback"
success: callback
});
}