Team:Heidelberg/Modeling/miGUI
From 2010.igem.org
(Difference between revisions)
Line 41: | Line 41: | ||
dataarray[num] = new Array(countinput); | dataarray[num] = new Array(countinput); | ||
d.getElementById("lowerinputform"+num).style.display = "block"; | d.getElementById("lowerinputform"+num).style.display = "block"; | ||
+ | dformsnr = dforms["giveinput"+num]; | ||
for (var i=0; i<=countinput; i++) { | for (var i=0; i<=countinput; i++) { | ||
var r = 0; | var r = 0; | ||
- | |||
dformsnrelement = dformsnr.elements[i]; | dformsnrelement = dformsnr.elements[i]; | ||
+ | |||
if(dformsnrelement.type == 'radio') { | if(dformsnrelement.type == 'radio') { | ||
if (dformsnrelement.checked == true) { | if (dformsnrelement.checked == true) { | ||
Line 70: | Line 71: | ||
dataarray[num][i-r] = dformsnrelement.value; | dataarray[num][i-r] = dformsnrelement.value; | ||
} | } | ||
+ | alert(dataarray[num][i-r]); | ||
} | } | ||
} | } | ||
Line 102: | Line 104: | ||
} | } | ||
- | document. | + | document.getElementById("targetselection").src = scriptoutput; |
} | } | ||
Line 109: | Line 111: | ||
specialcorrections(); | specialcorrections(); | ||
readvar(num); | readvar(num); | ||
- | |||
- | |||
- | |||
switch (num) { | switch (num) { | ||
- | case 7: scriptoutput = 'http://igem.bioquant.uni-heidelberg.de/cgi-bin/igem_2010/aastha.pl?miRBStarget=' + dataarray[num][0] + '&miRBSofftarget=' + dataarray[num][1] + '&miRBSonofftarget=' + dataarray[num][2] + '&outmiRBStreshold=' + dataarray[num][ | + | case 7: scriptoutput = 'http://igem.bioquant.uni-heidelberg.de/cgi-bin/igem_2010/aastha.pl?miRBStarget=' + dataarray[num][0] + '&miRBSofftarget=' + dataarray[num][1] + '&miRBSonofftarget=' + dataarray[num][2] + '&outmiRBStreshold=' + dataarray[num][4]; |
+ | break; | ||
+ | |||
+ | case 6: scriptoutput = 'http://igem.bioquant.uni-heidelberg.de/cgi-bin/igem_2010/test1.pl?input1=' + dataarray[num][4]; | ||
break; | break; | ||
} | } | ||
+ | |||
+ | writevar(num, scriptoutput); | ||
+ | |||
+ | |||
+ | |||
} | } | ||
Line 219: | Line 226: | ||
</form> | </form> | ||
- | <iframe name="targetselection"></iframe> </td></tr> | + | <iframe id="targetselection" name="targetselection" style="border:none"></iframe> </td></tr> |
<tr id="lowerinputform8" class="lowerinputform"><td>Reference:<form name="formout8"> | <tr id="lowerinputform8" class="lowerinputform"><td>Reference:<form name="formout8"> | ||
<input name="output8" type="text" size="30" maxlength="30"> | <input name="output8" type="text" size="30" maxlength="30"> |
Revision as of 18:58, 23 October 2010
|
|
||||||||||||||