From a4f6fbc8e4429ce789231c16cac27876a5c1605e Mon Sep 17 00:00:00 2001 From: gnanesh Date: Wed, 31 Mar 2021 08:03:41 +0530 Subject: [PATCH] picklist commit --- www/app.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/www/app.js b/www/app.js index 82d5388..ef60c7a 100644 --- a/www/app.js +++ b/www/app.js @@ -2,15 +2,15 @@ function analyze() { var phrase = document.getElementById("phrase").value; - var xmlhttp = new XMLHttpRequest(), + var xmlhttpp = new XMLHttpRequest(), method = 'POST', url = '/language'; - xmlhttp.open(method, url, true); - xmlhttp.setRequestHeader("Content-Type", "application/json;charset=UTF-8"); - xmlhttp.onload = function () { + xmlhttpp.open(method, url, true); + xmlhttpp.setRequestHeader("Content-Type", "application/json;charset=UTF-8"); + xmlhttpp.onload = function () { }; - xmlhttp.send(JSON.stringify({phrase: phrase})); + xmlhttpp.send(JSON.stringify({phrase: phrase})); } \ No newline at end of file