johnfraser
Programmer
I have an application that does three things in this order:
1. Pulls data from storage
2. Applies business rules (extremely complex)
3. Compiles Results
4. Downloads results (pdf) in object tag on page
At the most basic level, I'd like to have a "loading..." AJAX appear until the work is complete. Even better would be to have my business component return "event messages" to the UI and have them displayed showing each of the 4 steps to the end user.
I've worked with AJAX when it's user driven... say by a button click or drop down but I've never worked with AJAX that is controlled or at least depedant on the returned result of the business layer. I've seen things about "async" page loading and the events surrounding that but I can't find any information on how this might work with AJAX.
Bottom line, looking for a way to show end users that I'm doing some heavy server side processing and would like to transfer them to the "display page" when it's complete. How would I do that?
1. Pulls data from storage
2. Applies business rules (extremely complex)
3. Compiles Results
4. Downloads results (pdf) in object tag on page
At the most basic level, I'd like to have a "loading..." AJAX appear until the work is complete. Even better would be to have my business component return "event messages" to the UI and have them displayed showing each of the 4 steps to the end user.
I've worked with AJAX when it's user driven... say by a button click or drop down but I've never worked with AJAX that is controlled or at least depedant on the returned result of the business layer. I've seen things about "async" page loading and the events surrounding that but I can't find any information on how this might work with AJAX.
Bottom line, looking for a way to show end users that I'm doing some heavy server side processing and would like to transfer them to the "display page" when it's complete. How would I do that?