Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 161
  • Last Modified:

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:   ?????????
0
JElster
Asked:
JElster
1 Solution
 
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

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now