0

I am confuse if there is a way to determine the real time process count of AJAX request? so i can display it in a progress bar and loads it by percent.

claire
  • 87
  • 1
  • 7
  • 2
    Possible duplicate of [show progressbar while loading pages using jquery ajax in single page website](http://stackoverflow.com/questions/15328275/show-progressbar-while-loading-pages-using-jquery-ajax-in-single-page-website) – Nicolas Mar 07 '17 at 08:33
  • sorry but i already tried that one, not worked for me – claire Mar 07 '17 at 08:37
  • 2
    do you have any code? even if it doesn't work – Nicolas Mar 07 '17 at 08:40
  • var loadTime = window.performance.timing.domContentLoadedEventEnd - window.performance.timing.navigationStart; var gems_time = loadTime * 10; jQuery(".progress_bar_generate").animate({"width":"100%"},{ step: function(now,fx){ jQuery(".progress_bar_text").text(parseInt(now)+"%"); },duration : gems_time }); – claire Apr 17 '17 at 08:16
  • that's my code.. but it won't coincide with the ajax :( – claire Apr 17 '17 at 08:17

0 Answers0