Team:Warsaw/JSTest

From 2008.igem.org

(Difference between revisions)
Line 83: Line 83:
var titlepos=ans.search(title);
var titlepos=ans.search(title);
if (titlepos<0) return title+" not found";
if (titlepos<0) return title+" not found";
-
var endpos=ans.search("<h3>",titlepos);
+
var endpos=ans.indexOf("<h3>",titlepos);
if (endpos<0) return ans.substr(titlepos,ans.length-titlepos);
if (endpos<0) return ans.substr(titlepos,ans.length-titlepos);

Revision as of 21:45, 25 October 2008

Gallery Bricks Notebook Team Project Home