Team:Warsaw/JSTest

From 2008.igem.org

(Difference between revisions)
Line 99: Line 99:
do
do
{
{
-
titlepos=ans.search(h3,titlepos);
+
titlepos=ans.indexOf(h3,titlepos);
if (titlepos<0) return "Titles not found";
if (titlepos<0) return "Titles not found";
-
var endpos=ans.search(h3,titlepos+1);
+
var endpos=ans.indexOf(h3,titlepos+1);
-
alert(ans.match(h3,titlepos));
+
 
var curtitle=ans.match(h3,titlepos);
var curtitle=ans.match(h3,titlepos);

Revision as of 23:43, 25 October 2008

Gallery Bricks Notebook Team Project Home