Team:Johns Hopkins/Applications/GC Content

From 2008.igem.org

(Difference between revisions)
Line 3: Line 3:
<html>
<html>
-
<script type="text/javascript">
+
<frameset rows="50%">
-
var xmlHttp;
+
  <frame src="http://www.jhu.edu/iGEM/gc_content.html">
-
function runAJAX(seq)
+
</frameset>
-
{
+
-
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); alert("hello");
 
-
}
 
-
 
-
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>
 
-
 
-
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>

Revision as of 21:49, 16 July 2008