Home » Jquery » jquery – Export callback if window is close on Django import/export package-Exceptionshub

jquery – Export callback if window is close on Django import/export package-Exceptionshub

Posted by: admin February 24, 2020 Leave a comment

Questions:

I have a form post request that directs to views to export a file.
I am loading a spinner on a form request if internet connection is slow, I think I needa callback if the window is closed or download export file to hide the spinner.

How do I detect if I close the window or after I export a file?

How to&Answer: