[Bio] / RAST / Upload3p2.tt2 Repository:
ViewVC logotype

Diff of /RAST/Upload3p2.tt2

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3, Tue Nov 23 21:04:04 2010 UTC revision 1.4, Tue Nov 23 21:12:32 2010 UTC
# Line 35  Line 35 
35  function ajax_result (http_request, tax_id, form) {  function ajax_result (http_request, tax_id, form) {
36      if (http_request.readyState == 4) {      if (http_request.readyState == 4) {
37  //      alert("state=" +http_request.readyState + " " + http_request.responseText);  //      alert("state=" +http_request.readyState + " " + http_request.responseText);
         var obj = JSON.parse(http_request.responseText);  
38          form.elements['lookup'].value = "Look up taxonomy ID at NCBI.";          form.elements['lookup'].value = "Look up taxonomy ID at NCBI.";
39            var obj;
40            try {
41                obj = JSON.parse(http_request.responseText);
42            } catch (err)
43            {
44                obj = null;
45            }
46          if (obj == null || obj.domain == "")          if (obj == null || obj.domain == "")
47          {          {
48              alert("Could not find taxonomy id " + tax_id + " at NCBI.");              alert("Could not find taxonomy id " + tax_id + " at NCBI.");

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3