Salve ho una chiamata ajax :
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>
Come posso aggiungere una gif nel tempo in cui i dati vengono processati e farla sparire all'arrivo dei dati ?