tuxmartin

Nacitani novych prispevku na zed AJAXem

Feb 10th, 2014
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script> <%-- Nacitani novych prispevku na zed AJAXem --%>
  2. $(document).ready(function(){
  3.        var j = jQuery.noConflict();
  4.         j(document).ready(function()
  5.         {
  6.             j("#post-new").everyTime(10000,function(i){
  7.                 j.ajax({
  8.                   url: "/ppro/postJSFrom/41",
  9.                   cache: false,
  10.                   success: function(html){
  11.                     j("#post-new").html(html);
  12.                   }
  13.                 })
  14.             })
  15.         });
  16.        j('#post-new').css({color:"red"});
  17.     });
  18.  
  19. </script>
  20.  
  21. <div id="post-new"></div>
Advertisement
Add Comment
Please, Sign In to add comment