Forum OpenACS Q&A: "Please Wait" Screen/Progress Bar
How would I incorporate a "Please wait while data loads" screen that refreshes when the data is available, or preferably have a progress bar.
Or is there an existing application that I can copy/simulate?
Thanks in advance.
Use ad_progress_bar_begin and ad_progress_bar_end . For more details see the API browser.
for long-running tasks I spawn a detached thread for the task which updates status information in an nsv array, and direct the browser to a page which refreshes every 5 seconds and lets the user know how far through the process they are by reading from the nsv...