Advertisement
Guest User

Untitled

a guest
Sep 6th, 2017
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. % my $now = 1;
  2. <div id="test">
  3. <p> <%= $now %> </p>
  4. % $now++;
  5. </div>
  6.  
  7. <script type="text/javascript">
  8. function autoRefresh_div() {
  9. $("#test).load(location.href + " #test", function() {
  10. setTimeout(autoRefresh_div, 3000);
  11. });
  12. }
  13. autoRefresh_div();
  14. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement