What is the best way of showing progress on an Ajax call?

前端 未结 12 1061
遥遥无期
遥遥无期 2020-11-28 05:17

I have an Ajax call that updates 5,000 records in a database so this takes a lot of time. I have an Ajax \"Loading image\" showing that something is happening, but I am loo

12条回答
  •  春和景丽
    2020-11-28 05:40

    I would fire an Ajax callback once every n milliseconds that can query on how much is done (e.g. number of records updated) and use that to display a progress bar. Something like the way this works.

提交回复
热议问题