Re: Ajax query
| Newsgroups | gmane.comp.php.general |
|---|---|
| Message-ID | <CACOt7mFF_8HM2bgcFJ7kVU798CzWEi_--6K6LL3Q11P-KcQh1Q@mail.gmail.com> |
On Sat, 9 Sept 2023 at 11:27, <[email protected]> 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.