Skip to content

Instantly share code, notes, and snippets.

@oxalorg
Last active August 29, 2015 14:23
Show Gist options
  • Save oxalorg/d1208766d38f4e565a2a to your computer and use it in GitHub Desktop.
Save oxalorg/d1208766d38f4e565a2a to your computer and use it in GitHub Desktop.
function testFunc (form) {
var x = form.n1.value;
var y = form.n2.value;
$.ajax({
type: 'GET',
url: "http://127.0.0.1:5000/"+x+"-"+y,
contentType: 'text/plain',
success: function(response, textStat){
response = "The total sum is" + response;
$('.result').html(response);
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment