Read 189 times | Created 2013-02-12 08:25:21 | Updated 2013-02-12 08:25:21 | | |

 

*** FILE jqauto.php ***
<!DOCTYPE html>
<html>
  <head>
    <title>AutoLoad</title>
    <script type="text/javascript" src="jquery.min.js"></script>
  </head>
  <body>
    <div class="poll_container">
      <b>hasi:</b>
      <div class="poll-result">
      </div>
    </div>
  </body>
  <script>
    $(document).ready(function(){
      setInterval(function(){
        $('.poll-result').load('http://localhost/rand.php');
      },1000);
    });
  </script>
</html>

*** FILE rand.php ***
<?php
echo rand();
?>