View Single Post
ישן 06-10-08, 12:33   # 5
kfir91
חסום
 
מיני פרופיל
תאריך הצטרפות: Apr 2007
הודעות: 220

kfir91 לא מחובר  

ציטוט:
נכתב במקור על ידי 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);
}
איפה לעשות את מה שאמרת
  Reply With Quote