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 @@
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()]);
......
......@@ -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);
......
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