Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="listar"></div>
- <script src="assets/js/jquery-3.1.1.min.js"></script>
- <script type="text/javascript">
- function mostrar(){
- $(document).ready(function(){
- $.ajax({
- type:'post',
- dataType: 'json',
- url: 'atualizar.php',
- success: function(dados){
- alert(dados);
- }
- });
- });
- }
- //setInterval(function(){ mostrar; }, 3000);
- setInterval(mostrar, 3000);
- </script>
- $ver = "teste";
- echo json_decode($ver);
Add Comment
Please, Sign In to add comment