Last active
August 29, 2015 14:23
-
-
Save oxalorg/d1208766d38f4e565a2a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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