Switched to POST request
This commit is contained in:
@@ -48,13 +48,13 @@ block script
|
|||||||
function compile() {
|
function compile() {
|
||||||
var code = encodeURIComponent($("#inputCode").val());
|
var code = encodeURIComponent($("#inputCode").val());
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "POST",
|
||||||
async: true,
|
async: true,
|
||||||
url: "http://www.contrib.andrew.cmu.edu/~amgutier/cc0.cgi",
|
url: "http://www.contrib.andrew.cmu.edu/~amgutier/cc0.cgi",
|
||||||
dataType: "jsonp",
|
dataType: "json",
|
||||||
data: {
|
data: {
|
||||||
data: code
|
data: code
|
||||||
},
|
},
|
||||||
jsonpCallback: "callback"
|
success: callback
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user