Welcome! Log In Create A New Profile

Advanced

How to avoid browser page unresponsive

Posted by PETER ZHOU 
PETER ZHOU
How to avoid browser page unresponsive
August 10, 2020 03:43PM
Hi,

I have some reporting process that takes a few minutes to generate...
but the browser (eg chrome) will keep having page unresponsive although the report is still running in the background...

Is there any way to avoid this browser's warning message ? Or someway to inform the browser that the process is still running ?

Regards,

PETER ZHOU
Argus
Re: How to avoid browser page unresponsive
August 11, 2020 04:03PM
Not directly, but there is a workaround:

1. Use ajaxexecuteasynchronous to start your server side process (here your report edition)... this means that your browser side is NOT waiting for an answer

2. You can now have browser code displaying a waiting message, with animation and so on

3. when the process is done server side, it will return a value to the callback browser function (here, it would be the URL to display the pdf, by example), and that process can open that pdf in an iframe on the page, or on a secondary tab
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: