Ciao a tutti, per aggiornare i commenti ho inserito uno script Ajax che effettua una chiamata al file /ali/ajax/profile.chat.php , il file profilechat.php è senza errori e l'ho anche testato.
Il codice JS è questo:
Dov'è che sbaglio?codice:<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script> <script type="text/javascript"> $(function() { function aggiorna() { $.post('/ali/ajax/profilechat.php', { username: "<?php echo $_GET['username']; ?>" }, function(data) { $('#posted').html(data); } ); } setInterval("aggiorna()", 1500); }); </script>

Rispondi quotando