Template:WarNotebook

From 2008.igem.org

(Difference between revisions)
Line 120: Line 120:
var phr="onstruct";
var phr="onstruct";
phr=phr.replace("on","con");
phr=phr.replace("on","con");
-
ajaxsearch("https://2008.igem.org/Team:Warsaw/Calendar-Main/6_June_2008",phr);
+
//ajaxsearch("https://2008.igem.org/Team:Warsaw/Calendar-Main/6_June_2008",phr);
 +
 
 +
var eday="empty";
 +
eday=eday.replace("y","yday");
 +
 
 +
function next_fil(day)
 +
{
 +
var nday=nextday(day);
 +
document.GetElementById("next_ajax").innerHTML="document.GetElementById("next_ajax").innerHTML+"<br>Call: "+day;
 +
 
 +
if (window.XMLHttpRequest) { // Mozilla, Safari, Opera ...
 +
  var req = new XMLHttpRequest();
 +
} else if (window.ActiveXObject) { // IE
 +
  var req = new ActiveXObject("Microsoft.XMLHTTP");
 +
}
 +
var ans;
 +
req.overrideMimeType('text/xml');
 +
req.onreadystatechange = function() { //początek wewnętrznej funkcji
 +
if (req.readyState == 4) {
 +
            if (req.status == 200) {
 +
                ans=req.responseText;
 +
                if(ans.search(eday)>0) next_fil(nday);
 +
                else
 +
                {
 +
                document.GetElementById("next_ajax").innerHTML="document.GetElementById("next_ajax").innerHTML+"<br>Hit: "+nday;
 +
                }
 +
            }
 +
}
 +
 
 +
}; //koniec wewnętrznej funkcji
 +
 
 +
req.open('GET', url, true);
 +
req.send(null);
 +
 
 +
 
 +
}
 +
 
 +
 
/* ]]> */</script>
/* ]]> */</script>
<br/>
<br/>
</html>
</html>

Revision as of 17:53, 9 October 2008

Gallery Bricks Notebook Team Project Home


Previous day