Team:Warsaw/JSTest

From 2008.igem.org

(Difference between revisions)
Line 27: Line 27:
                 var strInputCode=new String();
                 var strInputCode=new String();
                 strInputCode=strInputCode2;
                 strInputCode=strInputCode2;
-
                 if (strInputCode==undefined) return;
+
                 //if (strInputCode==undefined) return;
/*
/*
                 strInputCode = strInputCode.replace(/&(lt|gt);/g, function (strMatch, p1){
                 strInputCode = strInputCode.replace(/&(lt|gt);/g, function (strMatch, p1){
Line 102: Line 102:
if (titles[i].search("h3")>0)  
if (titles[i].search("h3")>0)  
{
{
-
alert(titles[i].split(/(<h3>)|(<\/h3>)/i));
+
//alert(titles[i].split(/(<h3>)|(<\/h3>)/i));
var notags=titles[i].split(/(<h3>)|(<\/h3>)/i);
var notags=titles[i].split(/(<h3>)|(<\/h3>)/i);
-
 
+
if (notags[3]==undefined) var currtitle=removeHTMLTags(notags[0]);  //dirty IE hack
-
var currtitle=removeHTMLTags(notags[3]);
+
else var currtitle=removeHTMLTags(notags[3]);
currtitle=trimStr(currtitle.replace(/\+/g,' '));
currtitle=trimStr(currtitle.replace(/\+/g,' '));
-
//alert ("C: "+currtitle+"\nT: "+title);
+
alert ("C: "+currtitle+"\nT: "+title);
if (currtitle==title)  
if (currtitle==title)  
{
{

Revision as of 15:19, 27 October 2008

Gallery Bricks Notebook Team Project Home