Salve ho una chiamata ajax :
Come posso aggiungere una gif nel tempo in cui i dati vengono processati e farla sparire all'arrivo dei dati ?codice:<script type="text/javascript"> $(document).ready(function() { $('form').submit(function (e) { e.preventDefault(); $.ajax({ type: 'post', url: 'ricezione.php', data: new FormData(this), dataType: 'text', contentType: false, processData: false, success: function (data) { $("#risultato").html(data); }, error: function (xhr, textStatus, errorThrown) { alert(xhr.status + ': ' + errorThrown); alert("errore"); } }) }); }); </script>

Rispondi quotando