Skip to content
Snippets Groups Projects
Commit efa4a885 authored by Christopher Schankula's avatar Christopher Schankula :earth_africa:
Browse files

bioresult and Javascript are working together now

parent 06eeea58
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
JSONParser parser = new JSONParser(); JSONParser parser = new JSONParser();
JSONObject req = (JSONObject) parser.parse(request.getReader().readLine()); 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); //System.out.println(taxonId);
ArrayList<TaxonNode> txNodes = ((ArrayList<TaxonNode>) te.getTaxonRecord(taxonId).getChildren()); ArrayList<TaxonNode> txNodes = ((ArrayList<TaxonNode>) te.getTaxonRecord(taxonId).getChildren());
TaxonNode[] txNodesAr = txNodes.toArray(new TaxonNode[txNodes.size()]); TaxonNode[] txNodesAr = txNodes.toArray(new TaxonNode[txNodes.size()]);
......
...@@ -17,8 +17,8 @@ function initPickPhylum(){ ...@@ -17,8 +17,8 @@ function initPickPhylum(){
// taxID = id of parent of the thing that changes // taxID = id of parent of the thing that changes
function updateSciR(tagID, object) { function updateSciR(tagID, object) {
var path = 'doBioLookup.do'; var path = 'doBioLookup.do';
var taxID = object.value; var taxID = Number(object.value);
alert("Updating: " + tagID + "with children of: " + taxID); //TODO Remove me // alert("Updating: " + tagID + "with children of: " + taxID); //TODO Remove me
var params = { taxId: taxID}; var params = { taxId: taxID};
var xhr = new XMLHttpRequest(); var xhr = new XMLHttpRequest();
xhr.open("POST", path); xhr.open("POST", path);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment