diff --git a/tomcat/webapps/Trawl/bioresult.jsp b/tomcat/webapps/Trawl/bioresult.jsp index cc2a416ef42909c62fd1388bec23bf348cbe836a..36460f354acf95ccf8bf673b541edf666839d259 100644 --- a/tomcat/webapps/Trawl/bioresult.jsp +++ b/tomcat/webapps/Trawl/bioresult.jsp @@ -8,7 +8,7 @@ JSONParser parser = new JSONParser(); JSONObject req = (JSONObject) parser.parse(request.getReader().readLine()); - Integer taxonId = (int) (long) req.get("taxid"); + Integer taxonId = (int) (long) req.get("taxId"); //System.out.println(taxonId); ArrayList<TaxonNode> txNodes = ((ArrayList<TaxonNode>) te.getTaxonRecord(taxonId).getChildren()); TaxonNode[] txNodesAr = txNodes.toArray(new TaxonNode[txNodes.size()]); diff --git a/tomcat/webapps/Trawl/script.js b/tomcat/webapps/Trawl/script.js index 95d072e12ca22c266901579b7bc71ef9963ea869..ac890186161389b233802f9a8a1ec9020a7291c0 100644 --- a/tomcat/webapps/Trawl/script.js +++ b/tomcat/webapps/Trawl/script.js @@ -17,8 +17,8 @@ function initPickPhylum(){ // taxID = id of parent of the thing that changes function updateSciR(tagID, object) { var path = 'doBioLookup.do'; - var taxID = object.value; - alert("Updating: " + tagID + "with children of: " + taxID); //TODO Remove me + var taxID = Number(object.value); + // alert("Updating: " + tagID + "with children of: " + taxID); //TODO Remove me var params = { taxId: taxID}; var xhr = new XMLHttpRequest(); xhr.open("POST", path);