Comment afficher un état de chargement en pourcentage pour l'ajax réponse?

Je veux montrer à l'utilisateur le pourcentage de la réponse ajax chargé avec une progressbar.
Est-il un moyen pour y parvenir?
Droit maintenant, je suis en train de montrer qu'une image.

Voici mon code d'exemple :

$('#loadingDiv').show();

$.ajax({
        type : 'Get',
        url : myUrl,
        success : function(response) {
            $('#loadingDiv').hide();
            populateData(response);
        },
        error: function(x, e) {
                    $('#loadingDiv').hide();
            if (x.status == 500 || x.status == 404) {
                    alert("no data found");
                }
        }
    });

Code HTML:

<div id="loadingDiv">
     <img src="loading-img.png"/>
</div>
Un peu de research

OriginalL'auteur Premshankar Tiwari | 2013-05-22