C'e' un po di confusione
codice:$(document).ready(function(){ ref(); }); function ref(){ $('*').hide(); $('*').fadeIn(); $.ajax({ type: "GET", url: "ins.php", data: "who=<?php echo $a; ?>", dataType: "html", success: function(msg){ alert('chiamata riuscita'); $('#messing').html(msg); }, error: function(){ alert('errore nella chiamata'); } }); setInterval('ref()',500); }