Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

picklist commit #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions www/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}));

}