I’ve seen many examples of how to show a progress bar, and update a div with an ajax button, ajax search, etc… But I’m having a real hard time with this one.
I have a controller function that loops through an array, and each action takes some time. I’m looking for a way to visit the page and load a template instantly, while starting the controller action and showing the status to the user at an interval, or as soon as there’s a new status update set. I’d like the status log to show in full when done. Meaning that I want the new status to be appended to the old ones, so the user can walk away and come back, knowing what actions have been taken.
Can setflash, or render partial, and ajax help me? Can anyone post a simple example or point me in the direction of an existing one?
I’ve tried multiple examples already and am having a hard time coming up with a working example.
Any help would be greatly appreciated.