How to show progress bar while loading using ajax call?



How to show progress bar while loading using ajax call?..

Answer / Tanzeem Akhter

To show a progress bar during an AJAX call in JavaScript, you can use a combination of the `$.ajax()` function from jQuery and a simple HTML progress bar. You can create the progress bar using `<progress>` tag, and then update its value (`max` and `value`) within the `complete` callback of your AJAX request.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JavaScript Interview Questions

What is a closure javascript?

1 Answers  


What is javascript bom?

1 Answers  


What is the similarity between the 1st and 2nd statement?

1 Answers  


What are math constants and functions using javascript?

1 Answers  


How to prevent modification of an object in Javascript?

1 Answers  


How to add buttons in javascript?

1 Answers  


What is unescape() function?

1 Answers  


How do you clear an array in javascript?

1 Answers  


How to access an external javascript file that is stored externally and not embedded?

1 Answers  


What is the use of isNaN function?

1 Answers  


how to run java script program

1 Answers  


What does triple dot mean?

1 Answers  


Categories