Team:Johns Hopkins/Applications/GC Content
From 2008.igem.org
(Difference between revisions)
Line 1: | Line 1: | ||
{{Template:JHU}} | {{Template:JHU}} | ||
- | GC Content | + | <html> |
+ | |||
+ | <script type="text/javascript"> | ||
+ | |||
+ | var xmlHttp; | ||
+ | |||
+ | function runAJAX(seq) | ||
+ | { | ||
+ | |||
+ | if (seq.length==0) | ||
+ | { | ||
+ | document.getElementById("txtHint").innerHTML=""; | ||
+ | return; | ||
+ | } | ||
+ | xmlHttp=GetXmlHttpObject(); | ||
+ | if (xmlHttp==null) | ||
+ | { | ||
+ | alert ("Your browser does not support AJAX!"); | ||
+ | return; | ||
+ | } | ||
+ | |||
+ | var url="http://www.jhu.edu/cgi-bin/cgiwrap/~iGEM/gc_content.pl?new="+seq; | ||
+ | |||
+ | xmlHttp.onreadystatechange=stateChanged; | ||
+ | xmlHttp.open("GET",url,true); | ||
+ | xmlHttp.send(null); | ||
+ | } | ||
+ | |||
+ | function GetXmlHttpObject() | ||
+ | { | ||
+ | var xmlHttp=null; | ||
+ | try | ||
+ | { | ||
+ | // Firefox, Opera 8.0+, Safari | ||
+ | xmlHttp=new XMLHttpRequest(); | ||
+ | } | ||
+ | catch (e) | ||
+ | { | ||
+ | // Internet Explorer | ||
+ | try | ||
+ | { | ||
+ | xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); | ||
+ | } | ||
+ | catch (e) | ||
+ | { | ||
+ | xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); | ||
+ | } | ||
+ | } | ||
+ | return xmlHttp; | ||
+ | } | ||
+ | |||
+ | function stateChanged() | ||
+ | { | ||
+ | if (xmlHttp.readyState==4) | ||
+ | { | ||
+ | document.getElementById("txtHint").innerHTML=xmlHttp.responseText; | ||
+ | } | ||
+ | } | ||
+ | |||
+ | </script> | ||
+ | |||
+ | <EMBED SRC="DNA.mov" height=70 width=35 scale=TOFIT controller=false AUTOPLAY=true LOOP=true PLUGINSPAGE=http://www.apple.com/quicktime/"> | ||
+ | <div align="top" style="position: absolute;top:6px;left:55px"> | ||
+ | <b><font size="10" face="Hyperfont" color="#0066FF">Sequence </font> | ||
+ | <font size="10" face="Lucida Sans Typewriter Regular" color="#6699CC"> | ||
+ | GC Content</font></div><br></b><br><font size="2" face="Courier" color="white"> | ||
+ | This program will determine how many actual/probable guanines and cytosines are in a sequence.</br> | ||
+ | <form name="mica"> | ||
+ | Sequence: <input type="search" name="sequence" size="50" onkeyup="runAJAX(this.value)"><br> | ||
+ | </form> | ||
+ | <p>Results: <br><span id="txtHint"></span></p> | ||
+ | |||
+ | </body> | ||
+ | </html> |
Revision as of 21:36, 16 July 2008