On Sat, 9 Sept 2023 at 11:27, <gordonisnz@xxxxxxxxx> wrote:
TWO :-
<script type="text/_javascript_">
function updateShouts(){
// Assuming we have #shoutbox
$('#rot').load('rotatestats.php'); << PROBLEM LINE
}
setInterval( "updateShouts()", 10000 );
</script>
{/literal}
<div id="rot">
NEW:
</div>
I've got "ajax" working, & apparently its refreshing the DIV ok using EXAMPLE 2. , however it's displaying the WHOLE page inside that div, &then a 2nd page inside the other div too etc.. etc (the PHP script doesn't display a webpage...)
Hopefully I'll get it going - I think I know the problem.