I have a classic asp page which generates a PDF serves it to the browser. What I would like to do is have a loading page which loads the PDF in the background before serving it to the browser when this is complete, essentially adding a nice page indicating to the user that something is happening.
I have looked at things like the Yahoo progress bar but I didn’t see any way of then serving the pdf up.
Anybody have any suggestions? I’m sure this must have been done before.
I found a solution for this situation that uses iframes. It’s not classic asp, but I don’t see why it wouldn’t work. Here’s the article I found.
EDIT: added code.
Container page called by your application:
Then, somewhere in your BuildPDF.asp, you have a function something like this that you can call anytime you want to update the status message:
The page you have referenced in the “viewFrame” is your page that streams the ContentType “application/pdf.” Again, I did this in ASP.Net, but I see no reason why it wouldn’t work in classic ASP.