Team:Warsaw/JSTest

From 2008.igem.org

(Difference between revisions)
Line 93: Line 93:
function trimStr(str)
function trimStr(str)
{
{
-
//if (str==undefined) return "";
+
 
return str.replace(/^\s+|\s+$/g, '');
return str.replace(/^\s+|\s+$/g, '');
}
}
Line 111: Line 111:
var currtitle=removeHTMLTags(notags[3]);
var currtitle=removeHTMLTags(notags[3]);
currtitle=trimStr(currtitle.replace('+',' '));
currtitle=trimStr(currtitle.replace('+',' '));
-
//alert ("C: "+currtitle+"\nT: "+title);
+
alert ("C: "+currtitle+"\nT: "+title);
if (currtitle==title)  
if (currtitle==title)  
{
{

Revision as of 09:31, 26 October 2008

Gallery Bricks Notebook Team Project Home