Help with Ajax JQuery ProgressBar

How can I add a progress bar to the following.
thx

  $.ajax({
          url: "WEBSERVICES.asp",
          data: "type=Test",
          success: function (data) {
              console.log(data);
                },
          error: function (err) {
              console.log("Data could not be retrieved: " + err.statusText);
          }

        progress:   ?????????
LVL 1
JElsterAsked:
Who is Participating?
 
leakim971PluritechnicianCommented:
you need server code if you want to use a true one, else just display a fake one :
https://www.google.gp/search?q=loading+gif

$("#loading").show(); 
$.ajax({
          url: "WEBSERVICES.asp",
          data: "type=Test",
          success: function (data) {
$("#loading").hide(); 
              console.log(data);
                },
          error: function (err) {
              console.log("Data could not be retrieved: " + err.statusText);
          }
});

Open in new window

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.