| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 
 |  
function go()
	{	
 
	alert('hello ajax script');
 
	var xhr=getXhr();
	xhr.onreadystatechange=function()
		{
			if(xhr.readyState==4  && xhr.status==200)
			{	//alert('hello');
 
				leselect=xhr.responseText ;				
				document.getElementById('divgraph').innerHTML= leselect;
				//mygraph();
				alert('OK '+leselect);
			}/*else {
			alert("Il y a un probleme:\n" +	xhr.readyState);
 
			}*/
 
 
		}
 
	xhr.open("GET","classes/GetStatus.php",true);
	//xhr.open("GET","classes/ChargeDiagStatistique.php",true);
 
	xhr.send(null);
 
	} | 
Partager