I currently have this setup:
ScriptA: sends request to ScriptB to create PDF report
ScriptB: creates the PDF report based on the request received from ScriptA
Sometimes reports take a little bit & the user that requested the PDF gets impatient and wants to cancel the request.
I need to offer the user a cancel button & I don't wan't to refresh the page.
Is there a way to quit the running script this way?
I've looked at:
register_shutdown_function
But that doesn't appear to do what I have described above.
Any thoughts/experiences are greatly appreciated!
X
ScriptA: sends request to ScriptB to create PDF report
ScriptB: creates the PDF report based on the request received from ScriptA
Sometimes reports take a little bit & the user that requested the PDF gets impatient and wants to cancel the request.
I need to offer the user a cancel button & I don't wan't to refresh the page.
Is there a way to quit the running script this way?
I've looked at:
register_shutdown_function
But that doesn't appear to do what I have described above.
Any thoughts/experiences are greatly appreciated!
X