ציטוט:
נכתב במקור על ידי Rom
אתה עושה לכל שינוי תאריך, ואז בודק לפי התאריך האחרון..
|
שוב פעם להגיד?
איפה השינוי מתבצע באיזה קוד איך אני יודע שיש שינוי.
זה הקוד שמשנה :
קוד:
function ajax_read() {
if(window.XMLHttpRequest) {
xmlhttp=new XMLHttpRequest();
if(xmlhttp.overrideMimeType) {
xmlhttp.overrideMimeType('text/xml');
}
} else if(window.ActiveXObject) {
try {
xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
} catch(e) {
try {
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
} catch(e) {
}
}
}
if(!xmlhttp) {
alert('Giving up :( Cannot create an XMLHTTP instance');
return false;
}
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState==4) {
document.getElementById("content").innerHTML = xmlhttp.responseText;
}
}
xmlhttp.open('GET','results.php');
xmlhttp.send(null);
}
function refresh() {
ajax_read()
var t;
t=setTimeout("refresh()",1000);
}
איפה לעשות את מה שאמרת