Team:Warsaw/JSTest

From 2008.igem.org

(Difference between revisions)
Line 84: Line 84:
if (titlepos<0) return title+" not found";
if (titlepos<0) return title+" not found";
var endpos=ans.indexOf("<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+title.length,ans.length-titlepos);
-
return ans.substr(titlepos,endpos-titlepos);
+
return ans.substr(titlepos+title.length,endpos-titlepos);
}
}
var qs=new Querystring();
var qs=new Querystring();

Revision as of 21:47, 25 October 2008

Gallery Bricks Notebook Team Project Home