rem: xmlhttp[myField].onreadystatechange = function() { if (xmlhttp[myField].readyState == 4) { Field.innerHTML = xmlhttp[myField].responseText; url_chargee['mem_'+myUrl] = Field.innerHTML; Field.style.visibility = "visible"; Field.style.display = "block"; if (image_search[myField]) { image_search[myField].style.visibility = "hidden"; } if(jjscript) eval(jjscript); } } xmlhttp[myField].send(null); } 
add: if (!(xmlhttp[myField] = createXmlHttp())) return false; xmlhttp[myField].open("GET", myUrl, true);   xmlhttp[myField].onreadystatechange = function() { if (xmlhttp[myField].readyState == 4) {  if (xmlhttp[myField].responseText != '') { Field.innerHTML = xmlhttp[myField].responseText; url_chargee['mem_'+myUrl] = Field.innerHTML; } Field.style.visibility = "visible"; Field.style.display = "block"; if (image_search[myField]) { image_search[myField].style.visibility = "hidden"; } if(jjscript) eval(jjscript); } } xmlhttp[myField].send(null); } 
context: function charger_id_url(myUrl, myField, jjscript) {	var Field = findObj_forcer(myField); // selects the given element	if (!Field) return;			if (xmlhttp[myField]) xmlhttp[myField].abort();		if (url_chargee['mem_'+myUrl]) {		Field.innerHTML = url_chargee['mem_'+myUrl];		Field.style.visibility = "visible";		Field.style.display = "block";		if(jjscript) eval(jjscript);	} else {		image_search[myField] = findObj_forcer('img_'+myField);		if (image_search[myField]) image_search[myField].style.visibility = "visible";        	if(window.XMLHttpRequest) {                xmlhttp[myField] = new XMLHttpRequest();         } else if(window.ActiveXObject) {                xmlhttp[myField] = new ActiveXObject("Microsoft.XMLHTTP");        } else {                return false;        }        xmlhttp[myField].open("GET", myUrl, true);        xmlhttp[myField].onreadystatechange = function() {                if (xmlhttp[myField].readyState == 4) {                         Field.innerHTML = xmlhttp[myField].responseText; // puts the result into the element						url_chargee['mem_'+myUrl] = Field.innerHTML;						Field.style.visibility = "visible";						Field.style.display = "block";						if (image_search[myField]) {							image_search[myField].style.visibility = "hidden";						}						if(jjscript) eval(jjscript);               }        }        xmlhttp[myField].send(null);     }}
meta: 207	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/207/b103e5de957e0cecfe0146d386942b940bc8c1e9/layer.js/buggy/ecrire/layer.js