Re: Ajax query

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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. 
 

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux