All pastes #676677 Raw Edit

Anonymous

public text v1 · immutable
#676677 ·published 2007-08-31 09:18 UTC
rendered paste body
function print_Cella ()
{       
	var elemento2 = gebi("fermate");
	xhrCella.abort();
	
	if (xhrCella){
    
    //modifichiamo questa parte perchè andiamo a fare la chiamata
    xhrCella.open("GET", "fermate.php?Admin=$Admin", true);
    xhrCella.setRequestHeader("connection", "close");
    xhrCella.send(null);
    xhrCella.onreadystatechange=function(){
    
	     if (xhrCella.readyState != 4)  { return; }
			 clearTimeout(requestTimer);
			 if (xhrCella.status != 200)  {
			   // Handle error, e.g. Display error message on page
			   return;
			 }
			 elemento2.innerHTML = xhrCella.responseText;
    
    
    }
	}
        
}