I have a question on which if it is even possible and if so, I would please like to know how!
I am executing an ajax request to some url using POST. With the request I send data which contains an array.
On the url I request I want to loop through the array of data and while looping through that array I want to give some feedback on my screen like I am now in key-value 1 of 50 from that array.
Is that possible? I don't want a 'static' loader as feedback but dynamic content from the processed data on my screen. Can someone help me out?
Kind regards,
Pim
You want one request and multiple response.. right? As dave said, solution is to use websockets.
Or you can spawn an asynchronous process at server side and have an API/service to check the status of that process. And keep polling that service from the UI
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.