From c784de3184bf89da7f80bfcc980a05d097a602e0 Mon Sep 17 00:00:00 2001 From: Schankula Christopher <schankuc@mcmaster.ca> Date: Thu, 29 Mar 2018 08:48:44 -0400 Subject: [PATCH] javascript communicates with server --- tomcat/webapps/Trawl/script.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tomcat/webapps/Trawl/script.js b/tomcat/webapps/Trawl/script.js index 971596e..ba7a75e 100644 --- a/tomcat/webapps/Trawl/script.js +++ b/tomcat/webapps/Trawl/script.js @@ -41,11 +41,11 @@ function post(path, params) { function getChildren(id) { document.getElementById("console").innerHTML += "In | getChildren()<br>"; //TODO: Console REMOVEME var nodeList; - nodeList = { - "taxonId":[1821,51,1065], - "taxonName":["Chordata","Mollusca","Arthropoda"] - }; - //nodeList = post('doBioLookup.do', { taxid: id}); // {taxid: intID} + //nodeList = { + // "taxonId":[1821,51,1065], + // "taxonName":["Chordata","Mollusca","Arthropoda"] + //}; + nodeList = post('doBioLookup.do', { taxid: id}); // {taxid: intID} return nodeList; } -- GitLab