Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
meeting [2015-Dec-02 02:02] – créée MOLINIER Etiennemeeting [2018-Sep-18 22:39] (Version actuelle) – modification externe 127.0.0.1
Ligne 1: Ligne 1:
 <html> <html>
-<script type="text/javascript"> 
-  var xhttp = new XMLHttpRequest(); 
-  xhttp.onreadystatechange = function() { 
-    if (xhttp.readyState == 4 && xhttp.status == 200) { 
-      document.getElementById("hitcounter").innerHTML = xhttp.responseText; 
-    } 
-  }; 
-  xhttp.open("GET", "/hitcounter/meeting.php", true); 
-  xhttp.send(); 
-</script> 
 <style media="all" type="text/css"> <style media="all" type="text/css">
 /*Now the CSS*/ /*Now the CSS*/
Ligne 234: Ligne 224:
 <hr/> <hr/>
 <div id="hitcounter"></div> <div id="hitcounter"></div>
 +<script type="text/javascript">
 +  var xhttp = new XMLHttpRequest();
 +  xhttp.onreadystatechange = function() {
 +    console.log('ajax returned status'+xhttp.status);
 +    if (xhttp.readyState == 4 && xhttp.status == 200) {
 +      console.log('displaying the ajax obtained valies.');
 +      document.getElementById("hitcounter").innerHTML = xhttp.responseText;
 +    }
 +  };
 +  console.log('about to load the hitcounter using ajax');
 +  xhttp.open("GET", "https://www.emolinier.com/public/hitcounter/meeting.php", true);
 +  xhttp.send();
 +</script>
 </html> </html>
  • meeting.1449018126.txt.gz
  • Dernière modification : 2018-Sep-18 22:38
  • (modification externe)