Team:Johns Hopkins/Applications/GC Content

From 2008.igem.org

(Difference between revisions)
 
(22 intermediate revisions not shown)
Line 2: Line 2:
<html>
<html>
-
 
+
<iframe src="http://www.jhu.edu/iGEM/gc_content.html" HEIGHT=450 WIDTH=100% FRAMEBORDER=0 SCROLLING="NO"></iframe>
-
<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://localhost/cgi-bin/TN_Scripts/Primers/Scripts/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="hello world";
+
-
}
+
-
}
+
-
 
+
-
</script>
+
-
 
+
-
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>
</html>

Latest revision as of 00:29, 17 July 2008