Re: Ajax query

From: Date: Fri, 08 Sep 2023 23:56:07 +0000
Subject: Re: Ajax query
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-328275@lists.php.net to get a copy of this message
On Sat, 9 Sept 2023 at 11:27, <gordonisnz@gmail.com> 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.

« previous php.general (#328275) next »