Thinking...Thinking...Thinking

Hello!

I’m creating pdfs as part of a website. When the user clicks on “Create PDF”, a third-party application does the transformation of some html to pdf via php code. The process takes about 10 seconds and I don’t want the user to press the submit button more than once. So, I was thinking that I could use a javascript/jquery function to show an alert box while the behind the scene process occurs. While I can use an onclick function to show the initial alert, can I tell via javascript when the process has ended?

Thank you,

Eric

It’s possible to tell by polling every second to check if the pdf has finished being made.
Keep in mind though that while the alert is showing, no javascript code gets run in the background.

Thank you! I’ll investigate the polling technique and be wary of the alert box.

-Eric