Team:Warsaw/JSTest

From 2008.igem.org

(Difference between revisions)
Line 98: Line 98:
//alert(ans.split(/<h3>.*<\/h3>/i));
//alert(ans.split(/<h3>.*<\/h3>/i));
var topics=ans.split(h3);
var topics=ans.split(h3);
-
return topics[3];
+
for (var i=0;i<topics.length;i++)
-
//for (var i=0;i<topics.length;i++)return topics[i];
+
{
 +
if (topics[i]==title) return topics[i+1];
 +
}
 +
 
return "Search Error";
return "Search Error";

Revision as of 00:15, 26 October 2008

Gallery Bricks Notebook Team Project Home