How to refresh the browser after the HTML response is sent to the client browser?
Hi,
Any suggestion on how to refresh the browser after the HTML response is sent to the client browser?
This is the use case
1. XDP form is rendered as HTML in the client browser.
2. User fills in the form and clicks on the submit button.
3. The HTML form is posted to the server.
4. The server processes the request and generates a flat PDF and sends it to the client browser.
5. The PDF is available for download and it is visible in the browser status bar.
Currently the user needs to manually refresh the page by clicking on the browser's refresh button, after the pdf is received in the client-side, to see the blank form again.
Adaptive forms are not used here. We are using CRX repository and custom code to render XDP form as HTML5 form.
In the POST jsp code there is only one request and response that is being processed.
Is there a way to redirect the user to a thank you page with a 'ok' button (after the pdf is received on the client-side), and then redirect this page back to the original page after the user clicks 'ok'? How can this be done? Or is there any other better suggestion?
Thanks,
Leena