Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > it.comp.www.php > #22942

Re: php e ajax (elementare)

From cb <cb@ppt.io.it>
Newsgroups it.comp.www.php
Subject Re: php e ajax (elementare)
Date 2021-10-19 12:53 +0200
Organization Aioe.org NNTP Server
Message-ID <skm83l$5fo$1@gioia.aioe.org> (permalink)
References <skj7co$13sf$1@gioia.aioe.org> <skm6e8$1aim$1@gioia.aioe.org>

Show all headers | View raw


 >> xhttp.open("GET", "lista.php, true);
 >potrebbe essere qualcosa di proprio banale.
 >lista.php   non ha gli apici di chiusura.
Hai perfettamente ragione,
purtroppo anche messi gli apici ... nulla e' cambiato :-(
*GRAZIE* 1000 x l'attenzione :-)
Riporto qui sotto l'ambaradan completo e corretto
sperando nella pieta' che qualcuno avesse voglia ... :-)
---- index.php
<html>
<head></head>
<body>
<form>
<input type='button' onclick='show()' value='cclick'>
</form>
<p>data: <span id="dataGiorno"></span></p>
<script>
function show() {
    var xmlhttp = new XMLHttpRequest();
    xmlhttp.onreadystatechange = function() {
       if (this.readyState == 4 && this.status == 200) {
          document.getElementById("dataGiorno").innerHTML = 
this.responseText;
       }
    };
    xhttp.open("GET", "lista.php", true);
    xmlhttp.send();
}
</script>
</body>
</html>
---- lista.php
<?php echo "<h1>data del giorno</h1>"; ?>

Back to it.comp.www.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

php e ajax (elementare) cb <cb@ppt.io.it> - 2021-10-18 09:23 +0200
  Re: php e ajax (elementare) pippo <pippo@invalid.it> - 2021-10-19 12:25 +0200
    Re: php e ajax (elementare) cb <cb@ppt.io.it> - 2021-10-19 12:53 +0200
      Re: php e ajax (elementare) Leonardo Serni <lserni@gmail.com> - 2021-10-19 23:02 +0200
        Re: php e ajax (elementare) cb <cb@ppt.io.it> - 2021-10-20 08:09 +0200
          Re: php e ajax (elementare) Leonardo Serni <lserni@gmail.com> - 2021-10-20 08:58 +0200
      Re: php e ajax (elementare) pippo <pippo@invalid.it> - 2021-10-21 05:15 +0200
  Re: php e ajax (elementare) Alessandro Pellizzari <shuriken@amiran.it> - 2021-10-24 10:02 +0100
    Re: php e ajax (elementare) pippo <pippo@invalid.it> - 2021-10-24 13:00 +0200
      Re: php e ajax (elementare) Alessandro Pellizzari <shuriken@amiran.it> - 2021-10-24 12:40 +0100

csiph-web