Team:Heidelberg/Modeling/miGUI
From 2010.igem.org
(Difference between revisions)
Line 17: | Line 17: | ||
function getvar (num) | function getvar (num) | ||
{ | { | ||
- | var r = 0 | + | var r = 0; |
var count=document.forms["form"+num].length-2; | var count=document.forms["form"+num].length-2; | ||
dataarray[num] = new Array(count); | dataarray[num] = new Array(count); | ||
Line 23: | Line 23: | ||
for (var i=0; i<=count; i++) { | for (var i=0; i<=count; i++) { | ||
- | + | if(document.forms["form"+num].elements[i].type == 'radio') { | |
- | + | if (document.forms["form"+num].elements[i].checked == true) { | |
+ | dataarray[num][i-r] = document.forms["form"+num].elements[i].value; | ||
+ | } else { r++ } | ||
+ | } else if (document.forms["form"+num].elements[i].type == 'select-multiple') { | ||
+ | dataarray[num][i-r] = "" | ||
+ | for(var j=0;j<document.forms["form"+num].elements[i].length;j++){ | ||
+ | if (document.forms["form"+num].elements[i][j].selected == true ) { | ||
+ | dataarray[num][i-r] += document.forms["form"+num].elements[i][j].value + ";"; | ||
+ | } | ||
+ | } | ||
+ | } else { | ||
dataarray[num][i-r] = document.forms["form"+num].elements[i].value; | dataarray[num][i-r] = document.forms["form"+num].elements[i].value; | ||
- | + | } | |
- | } | + | |
- | + | ||
- | + | ||
document.forms["formout"+num].elements[i-r].value = dataarray[num][i-r]; | document.forms["formout"+num].elements[i-r].value = dataarray[num][i-r]; | ||
- | |||
- | |||
} | } | ||
- | + | } | |
- | + | ||
- | |||
function showoptions(num) | function showoptions(num) | ||
Line 53: | Line 56: | ||
<html> | <html> | ||
<body> | <body> | ||
- | + | <a href="javascript:klick()">klick</a> | |
<div id="main_page"> | <div id="main_page"> | ||
<div id="area_map"> | <div id="area_map"> | ||
Line 175: | Line 178: | ||
</select></p> | </select></p> | ||
- | <p>Choose your Off-Targets:<br><select name="miRBSofftarget" size="4" multiple> | + | <p>Choose your Off-Targets:<br><select name="miRBSofftarget[]" size="4" multiple> |
<option value='hsa_AML-HL60'>hsa_AML-HL60</option> | <option value='hsa_AML-HL60'>hsa_AML-HL60</option> | ||
<option value='hsa_AML-Kas1'>hsa_AML-Kas1</option> | <option value='hsa_AML-Kas1'>hsa_AML-Kas1</option> |
Revision as of 22:51, 18 October 2010
|
|
||||||||||||||||||||