Team:SDU-Denmark/test

From 2012.igem.org

(Difference between revisions)
Line 177: Line 177:
 +
function loadPage(){
 +
if (window.XMLHttpRequest){
 +
    // code for IE7+, Firefox, Chrome, Opera, Safari
 +
    xmlhttp=new XMLHttpRequest();
 +
}else{
 +
    // code for IE6, IE5
 +
    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
 +
}
 +
xmlhttp.onreadystatechange=function(){
 +
    if (xmlhttp.readyState==4 && xmlhttp.status==200){
 +
        document.getElementById("mennu").innerHTML=xmlhttp.responseText;
 +
    }
 +
}
 +
 +
xmlhttp.open("POST","https://2012.igem.org/Team:SDU-Denmark/menu",true);
 +
xmlhttp.send();
 +
}
Line 204: Line 221:
-
function loadPage(){
 
-
if (window.XMLHttpRequest){
 
-
    // code for IE7+, Firefox, Chrome, Opera, Safari
 
-
    xmlhttp=new XMLHttpRequest();
 
-
}else{
 
-
    // code for IE6, IE5
 
-
    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
 
-
}
 
-
xmlhttp.onreadystatechange=function(){
 
-
    if (xmlhttp.readyState==4 && xmlhttp.status==200){
 
-
        document.getElementById("mennu").innerHTML=xmlhttp.responseText;
 
-
    }
 
-
}
 
-
 
-
xmlhttp.open("POST","https://2012.igem.org/Team:SDU-Denmark/menu",true);
 
-
xmlhttp.send();
 
-
}
 
<div id="mennu">
<div id="mennu">

Revision as of 23:39, 17 September 2012

iGEM TEAM ::: SDU-DENMARK function loadPage(){ if (window.XMLHttpRequest){ // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); }else{ // code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function(){ if (xmlhttp.readyState==4 && xmlhttp.status==200){ document.getElementById("mennu").innerHTML=xmlhttp.responseText; } } xmlhttp.open("POST","https://2012.igem.org/Team:SDU-Denmark/menu",true); xmlhttp.send(); } by courtesy of NIAID