Team:Warsaw/JSTest

From 2008.igem.org

(Difference between revisions)
Line 1: Line 1:
{{WarHead}}
{{WarHead}}
<html>
<html>
-
 
+
dsada
 +
<div id="html" style="display:none;"></div>
<div id="progress"></div>
<div id="progress"></div>
<div id="result"></div>
<div id="result"></div>
-
 
+
sdad
<script type="text/javascript">
<script type="text/javascript">
Line 57: Line 58:
document.getElementById("progress").innerHTML=req.statusText;             
document.getElementById("progress").innerHTML=req.statusText;             
-
var ansStr=req.responseText;
+
document.getElementById("html").innerHTML=req.responseText;
-
//ok lets correct damn wiki xhtml code errors
+
htm=document.getElementById("html");
-
ansStr=ansStr.replace("<img src='/wiki/skins/common/images/wiki.png'>","");
+
-
ansStr=ansStr.replace("</p><p>","");
+
document.getElementById("result").innerHTML=htm.getElementById("WarNotebook").innerHTML;
-
 
+
-
//ansStr=ansStr.replace("</p><p><br />","</p><p><br/></html>");
+
-
var parser=new DOMParser();
+
-
ans=parser.parseFromString(ansStr, "text/xml" );
+
-
//.getElementById("WarNotebook");
+
-
            document.getElementById("result").innerHTML=(new XMLSerializer()).serializeToString(ans);
+
}
}
Line 85: Line 79:
-
 
+
zfdsfd
</html>
</html>
{{WarNotebookEnd}}
{{WarNotebookEnd}}

Revision as of 19:59, 17 October 2008

Gallery Bricks Notebook Team Project Home

dsada
sdad zfdsfd