JQUERY refresh after ajax call - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:ajax

Description

JQUERY refresh after ajax call

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <title>test</title> 
  <script src="https://code.jquery.com/jquery-latest.js"></script> 
  <script>
$(function() {/*from w w w.  j a v  a2 s.c o m*/
    startRefresh();
});
function startRefresh() {
    setTimeout(startRefresh,1000);
    $.get('ajaxstatus.php', function(data) {
        $('#content').html(data);
    });
}

      </script> 
 </head> 
 <body> 
  <div id="wrapper"> 
   <div id="content"></div> 
  </div>  
 </body>
</html>

Related Tutorials