Team:Heidelberg/Parts

From 2010.igem.org

(Difference between revisions)
Line 25: Line 25:
function formatparts() {
function formatparts() {
-
 
-
 
-
 
-
alert(document.getElementById("groupparts").getElementsByTagName("tbody")[0].getElementsByTagName("tr")[0].getElementsByTagName("td").length);
 
var d = document.getElementById("groupparts");
var d = document.getElementById("groupparts");
var dbodytr = d.getElementsByTagName("tbody")[0].getElementsByTagName("tr");
var dbodytr = d.getElementsByTagName("tbody")[0].getElementsByTagName("tr");
-
var lastrowelement = dbodytr[0].childNodes.length;
+
var lasttd = dbodytr[0].getElementsByTagName("td").length;
-
 
+
-
var lasttd = 0
+
-
 
+
-
for (var i=0;i<lastrowelement;i++) {
+
-
if(dbodytr[0].childNodes[i] == 'TD') {
+
-
lasttd ++
+
-
}
+
-
}
+
var designertd = lasttd - 2;
var designertd = lasttd - 2;
Line 51: Line 39:
for (var i=0;i<rowscount;i++) {
for (var i=0;i<rowscount;i++) {
-
dbodytr[i].childNodes[designertd].style.display ="none"
+
dbodytr[i].getElementsByTagName("td")[designertd].style.display ="none"
}
}

Revision as of 15:18, 23 October 2010


Parts

<groupparts>iGEM010 Heidelberg</groupparts>