javascript - How do I implement ajax progress in TIdHTTPServer? -


i have service project provides http server via tidhttpserver, , web frontend. number of functions user may initiate can take 5-10 seconds complete, during time see gif animation while ajax request waits delphi code complete , return status.

i'd implement progress bar, or percentage (perhaps estimated time remaining, etc), i'm not sure how should implemented. xmlhttprequest() has progress event, seems easy enough implement on client, how have server respond it's progress?

from ajaxpatterns.org:

another way deal long xmlhttprequest calls explicitly introduce second monitoring channel. while primary request takes place, sequence of monitoring requests issued ask server progress estimates. example, server might looping through 1000 records, running transformation on each of , saving database. loop variable can exposed monitoring service can convert percentage remaining figure.


Comments

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

python - Pygame screen.blit not working -

c# - Web API response xml language -