Template:ZJU-China/Tools
From 2014.igem.org
(Difference between revisions)
Line 11: | Line 11: | ||
<script src="https://2014.igem.org/wiki/index.php?title=Team:ZJU-China/JS/form-fun.jquery.js&action=raw&ctype=text/css" type="text/javascript" charset="utf-8"></script> | <script src="https://2014.igem.org/wiki/index.php?title=Team:ZJU-China/JS/form-fun.jquery.js&action=raw&ctype=text/css" type="text/javascript" charset="utf-8"></script> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
- | function sendpost() { | + | <script type="text/javascript"> |
- | + | function sendpost() { | |
- | + | $.post("http://bis.zju.edu.cn/GS_Box/index.php",{ | |
- | + | sequence1: $("#name_attendee_1").val(), | |
- | + | sequence2: $("#name_attendee_2").val(), | |
- | + | sequence3: $("#name_attendee_3").val(), | |
- | + | sequence4: $("#name_attendee_4").val(), | |
- | + | sequence5: $("#name_attendee_5").val(), | |
- | + | mode: $("#modevalue").val() | |
- | + | },function(data){ | |
- | + | data=eval("("+data+")"); | |
- | + | // alert(data) | |
- | + | var txt=''; | |
- | + | // txt='<p>'+data[0]['homo']+'</p>'; | |
- | + | txt+='<table border="1" cellspacing="0" width="100%" bordercolorlight="#333333" bordercolordark="#efefef" width="100%" style="word-break: break-all;"><tr bgcolor=#cccccc><td style="width: 3%">part</td><td style="width: 17%">homo</td><td style="width: 27%">pp</td><td style="width: 5%">pp GC</td><td style="width: 5%">pp TM</td><td style="width: 26%">fp</td><td style="width: 5%">fp GC</td><td style="width: 5%">fp TM</td><td style="width: 7%">connect</td></tr>'; | |
- | + | for (key in data) { | |
- | + | txt+='<tr bgcolor=#eafeff><td>'; | |
- | + | txt+=(key*1.0+1); | |
- | + | txt+='</td><td>'; | |
- | + | txt+=data[key]['homo']; | |
- | + | txt+='</td><td>'; | |
- | + | txt+=data[key]['pprimer']; | |
- | + | txt+='</td><td>'; | |
- | + | txt+=data[key]['pp GC']; | |
- | } | + | txt+='</td><td>'; |
- | + | txt+=data[key]['pp TM']; | |
- | + | txt+='</td><td>'; | |
- | + | txt+=data[key]['fprimer']; | |
- | + | txt+='</td><td>'; | |
- | + | txt+=data[key]['fp GC']; | |
+ | txt+='</td><td>'; | ||
+ | txt+=data[key]['fp TM']; | ||
+ | txt+='</td><td>'; | ||
+ | txt+=data[key]['connect']; | ||
+ | txt+='</td></tr>'; | ||
+ | } | ||
+ | txt+='</table>'; | ||
+ | $("body").append(txt); | ||
+ | }) | ||
+ | } | ||
+ | </script> | ||
<title>GS-Box</title> | <title>GS-Box</title> |